1- from _typeshed import Incomplete , SupportsWrite
1+ from _typeshed import SupportsWrite
22from collections .abc import Callable , Mapping , MutableMapping
33from typing import Any
44from typing_extensions import TypeAlias
5- from xml .sax import handler
6- from xml .sax .xmlreader import AttributesImpl , XMLReader
5+ from xml .sax import _Source , handler
6+ from xml .sax .xmlreader import AttributesImpl , InputSource , XMLReader
77
88from netaddr .core import Publisher , Subscriber
99from netaddr .ip import IPAddress , IPNetwork , IPRange
@@ -20,8 +20,8 @@ class SaxRecordParser(handler.ContentHandler):
2020
2121class XMLRecordParser (Publisher ):
2222 xmlparser : XMLReader
23- fh : Incomplete
24- def __init__ (self , fh , ** kwargs : object ) -> None : ...
23+ fh : InputSource | _Source
24+ def __init__ (self , fh : InputSource | _Source , ** kwargs : object ) -> None : ...
2525 def process_record (self , rec : Mapping [str , object ]) -> dict [str , str ] | None : ...
2626 def consume_record (self , rec : object ) -> None : ...
2727 def parse (self ) -> None : ...
@@ -41,11 +41,11 @@ class MulticastParser(XMLRecordParser):
4141 def normalise_addr (self , addr : str ) -> str : ...
4242
4343class DictUpdater (Subscriber ):
44- dct : MutableMapping [_IanaInfoKey , Incomplete ]
44+ dct : MutableMapping [_IanaInfoKey , dict [ str , Any ] ]
4545 topic : str
4646 unique_key : str
47- def __init__ (self , dct : MutableMapping [_IanaInfoKey , Incomplete ], topic : str , unique_key : str ) -> None : ...
48- def update (self , data ) -> None : ...
47+ def __init__ (self , dct : MutableMapping [_IanaInfoKey , dict [ str , Any ] ], topic : str , unique_key : str ) -> None : ...
48+ def update (self , data : dict [ str , Any ] ) -> None : ...
4949
5050def load_info () -> None : ...
5151def pprint_info (fh : SupportsWrite [str ] | None = None ) -> None : ...
0 commit comments