mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import List, NamedTuple
|
||||
from typing import NamedTuple
|
||||
|
||||
if sys.platform != "win32":
|
||||
class struct_spwd(NamedTuple):
|
||||
@@ -12,5 +12,5 @@ if sys.platform != "win32":
|
||||
sp_inact: int
|
||||
sp_expire: int
|
||||
sp_flag: int
|
||||
def getspall() -> List[struct_spwd]: ...
|
||||
def getspall() -> list[struct_spwd]: ...
|
||||
def getspnam(name: str) -> struct_spwd: ...
|
||||
|
||||
Reference in New Issue
Block a user