mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
xml: stubtest fixes (#7890)
This commit is contained in:
@@ -94,13 +94,8 @@ multiprocessing.managers.SharedMemoryServer.public
|
||||
multiprocessing.managers.SharedMemoryServer.release_segment
|
||||
multiprocessing.managers.SharedMemoryServer.shutdown
|
||||
multiprocessing.managers.SharedMemoryServer.track_segment
|
||||
pyexpat.XMLParserType.SkippedEntityHandler
|
||||
pyexpat.XMLParserType.intern
|
||||
typing._SpecialForm.__call__
|
||||
unicodedata.UCD.is_normalized
|
||||
xml.parsers.expat.XMLParserType.SkippedEntityHandler
|
||||
xml.parsers.expat.XMLParserType.intern
|
||||
xml.sax.handler.LexicalHandler
|
||||
|
||||
# ==========
|
||||
# Related to positional-only arguments
|
||||
|
||||
@@ -78,14 +78,6 @@ platform.uname_result.processor
|
||||
pydoc.HTMLDoc.heading
|
||||
pydoc.HTMLDoc.multicolumn
|
||||
pydoc.HTMLDoc.section
|
||||
pyexpat.XMLParserType.SkippedEntityHandler
|
||||
pyexpat.XMLParserType.intern
|
||||
pyexpat.errors.XML_ERROR_AMPLIFICATION_LIMIT_BREACH
|
||||
pyexpat.errors.XML_ERROR_INVALID_ARGUMENT
|
||||
pyexpat.errors.XML_ERROR_NO_BUFFER
|
||||
pyexpat.errors.XML_ERROR_RESERVED_NAMESPACE_URI
|
||||
pyexpat.errors.XML_ERROR_RESERVED_PREFIX_XML
|
||||
pyexpat.errors.XML_ERROR_RESERVED_PREFIX_XMLNS
|
||||
queue.SimpleQueue.__init__
|
||||
shutil.rmtree
|
||||
socketserver.UDPServer.allow_reuse_port
|
||||
@@ -117,15 +109,6 @@ unittest.doModuleCleanups
|
||||
urllib.request.FancyURLopener.http_error_308
|
||||
urllib.request.HTTPRedirectHandler.http_error_308
|
||||
weakref.WeakValueDictionary.update
|
||||
xml.parsers.expat.XMLParserType.SkippedEntityHandler
|
||||
xml.parsers.expat.XMLParserType.intern
|
||||
xml.parsers.expat.errors.XML_ERROR_AMPLIFICATION_LIMIT_BREACH
|
||||
xml.parsers.expat.errors.XML_ERROR_INVALID_ARGUMENT
|
||||
xml.parsers.expat.errors.XML_ERROR_NO_BUFFER
|
||||
xml.parsers.expat.errors.XML_ERROR_RESERVED_NAMESPACE_URI
|
||||
xml.parsers.expat.errors.XML_ERROR_RESERVED_PREFIX_XML
|
||||
xml.parsers.expat.errors.XML_ERROR_RESERVED_PREFIX_XMLNS
|
||||
xml.sax.handler.LexicalHandler
|
||||
xmlrpc.server.SimpleXMLRPCRequestHandler.rpc_paths
|
||||
zipfile.Path.stem
|
||||
zipfile.Path.suffix
|
||||
|
||||
@@ -177,3 +177,6 @@ sqlite3.dbapi2.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.dbapi2.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
sqlite3.Binary.__iter__ # C type that implements __getitem__
|
||||
sqlite3.Binary.cast # inspect.signature is incorrect about shape being kw-only
|
||||
|
||||
pyexpat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
|
||||
xml.parsers.expat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
|
||||
|
||||
@@ -170,6 +170,8 @@ queue.SimpleQueue.__init__
|
||||
|
||||
pyexpat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - function gets only positional args
|
||||
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - function gets only positional args
|
||||
pyexpat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
|
||||
xml.parsers.expat.XMLParserType.intern # does exist but stubtest can't see it (https://github.com/python/cpython/blob/3.7/Modules/pyexpat.c#L1322)
|
||||
|
||||
# White lies around defaults
|
||||
dataclasses.field
|
||||
|
||||
@@ -129,8 +129,6 @@ multiprocessing.managers.SharedMemoryServer.shutdown
|
||||
multiprocessing.managers.SharedMemoryServer.track_segment
|
||||
plistlib.Data.asBase64
|
||||
plistlib.Data.fromBase64
|
||||
pyexpat.XMLParserType.SkippedEntityHandler
|
||||
pyexpat.XMLParserType.intern
|
||||
stringprep.unicodedata # re-exported from unicodedata
|
||||
tempfile.SpooledTemporaryFile.softspace
|
||||
tkinter.Tk.split
|
||||
@@ -153,8 +151,6 @@ tkinter.simpledialog.wantobjects
|
||||
tkinter.tix.wantobjects
|
||||
typing._SpecialForm.__call__
|
||||
unicodedata.UCD.is_normalized
|
||||
xml.parsers.expat.XMLParserType.SkippedEntityHandler
|
||||
xml.parsers.expat.XMLParserType.intern
|
||||
|
||||
# ==========
|
||||
# Allowlist entries that cannot or should not be fixed
|
||||
|
||||
@@ -132,15 +132,11 @@ multiprocessing.managers.SharedMemoryServer.public
|
||||
multiprocessing.managers.SharedMemoryServer.release_segment
|
||||
multiprocessing.managers.SharedMemoryServer.shutdown
|
||||
multiprocessing.managers.SharedMemoryServer.track_segment
|
||||
pyexpat.XMLParserType.SkippedEntityHandler
|
||||
pyexpat.XMLParserType.intern
|
||||
stringprep.unicodedata # re-exported from unicodedata
|
||||
types.GenericAlias.__mro_entries__
|
||||
typing._SpecialForm.__call__
|
||||
typing._SpecialForm.__mro_entries__
|
||||
unicodedata.UCD.is_normalized
|
||||
xml.parsers.expat.XMLParserType.SkippedEntityHandler
|
||||
xml.parsers.expat.XMLParserType.intern
|
||||
|
||||
# SpooledTemporaryFile implements IO except these methods before Python 3.11
|
||||
# See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918
|
||||
|
||||
Reference in New Issue
Block a user