|
1 | | -from typing import Any |
| 1 | +import sys |
2 | 2 |
|
3 | | -version: Any |
| 3 | +version: str |
4 | 4 |
|
5 | 5 | class ErrorHandler: |
6 | 6 | def error(self, exception): ... |
@@ -30,17 +30,25 @@ class DTDHandler: |
30 | 30 | class EntityResolver: |
31 | 31 | def resolveEntity(self, publicId, systemId): ... |
32 | 32 |
|
33 | | -feature_namespaces: Any |
34 | | -feature_namespace_prefixes: Any |
35 | | -feature_string_interning: Any |
36 | | -feature_validation: Any |
37 | | -feature_external_ges: Any |
38 | | -feature_external_pes: Any |
39 | | -all_features: Any |
40 | | -property_lexical_handler: Any |
41 | | -property_declaration_handler: Any |
42 | | -property_dom_node: Any |
43 | | -property_xml_string: Any |
44 | | -property_encoding: Any |
45 | | -property_interning_dict: Any |
46 | | -all_properties: Any |
| 33 | +feature_namespaces: str |
| 34 | +feature_namespace_prefixes: str |
| 35 | +feature_string_interning: str |
| 36 | +feature_validation: str |
| 37 | +feature_external_ges: str |
| 38 | +feature_external_pes: str |
| 39 | +all_features: list[str] |
| 40 | +property_lexical_handler: str |
| 41 | +property_declaration_handler: str |
| 42 | +property_dom_node: str |
| 43 | +property_xml_string: str |
| 44 | +property_encoding: str |
| 45 | +property_interning_dict: str |
| 46 | +all_properties: list[str] |
| 47 | + |
| 48 | +if sys.version_info >= (3, 10): |
| 49 | + class LexicalHandler: |
| 50 | + def comment(self, content: str) -> object: ... |
| 51 | + def startDTD(self, name: str, public_id: str | None, system_id: str | None) -> object: ... |
| 52 | + def endDTD(self) -> object: ... |
| 53 | + def startCDATA(self) -> object: ... |
| 54 | + def endCDATA(self) -> object: ... |
0 commit comments