Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu
2024-03-10 06:11:43 -07:00
committed by GitHub
parent f94bbfbcc4
commit 88fa182253
97 changed files with 625 additions and 632 deletions
+1 -1
View File
@@ -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]: ...