mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Use PEP 570 syntax in third party stubs (#11554)
This commit is contained in:
@@ -26,7 +26,7 @@ class XMLRecordParser(Publisher):
|
||||
def consume_record(self, rec: object) -> None: ...
|
||||
def parse(self) -> None: ...
|
||||
# Arbitrary attributes are set in __init__ with `self.__dict__.update(kwargs)`
|
||||
def __getattr__(self, __name: str) -> Any: ...
|
||||
def __getattr__(self, name: str, /) -> Any: ...
|
||||
|
||||
class IPv4Parser(XMLRecordParser):
|
||||
def process_record(self, rec: Mapping[str, object]) -> dict[str, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user