You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tkinter.Misc.after # we intentionally don't allow everything that "works" at runtime
94
80
tkinter.Text.count # stubtest somehow thinks that index1 parameter has a default value, but it doesn't in any of the overloads
95
-
traceback.TracebackException.from_exception # explicitly expanding arguments going into TracebackException __init__
96
81
typing(_extensions)?\.IO\.__next__ # Added because IO streams are iterable. See https://github.com/python/typeshed/commit/97bc450acd60c1bcdafef3ce8fbe3b95a9c0cac3
97
82
typing.type_check_only # typing decorator that is not available at runtime
98
83
unittest.mock.patch # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
99
-
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to super, so super args are specified
100
84
weakref.WeakKeyDictionary.update
101
85
weakref.WeakValueDictionary.update
102
-
xml.etree.ElementTree.XMLParser.__init__ # Defined in C so has general signature
103
-
xml.etree.cElementTree.XMLParser.__init__ # Defined in C so has general signature
104
86
xml.parsers.expat.expat_CAPI
105
87
106
88
# ==========
@@ -330,13 +312,33 @@ collections.abc.* # Types are re-exported from _collections_abc, so errors shou
330
312
_?ctypes.Array.raw # exists but stubtest can't see it; only available if _CT == c_char
331
313
_?ctypes.Array._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361
332
314
_?ctypes.Array._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361
argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation)
335
325
argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic
326
+
327
+
# runtime is *args, **kwargs due to a wrapper, but we have more accurate signatures in the stubs
328
+
ast.Bytes.__new__
329
+
ast.Ellipsis.__new__
330
+
ast.NameConstant.__new__
331
+
ast.Num.__new__
332
+
ast.Str.__new__
333
+
336
334
ast.NodeVisitor.visit_\w+ # Methods are discovered dynamically, see #3796
337
335
asyncio.proactor_events.BaseProactorEventLoop.sock_recv # nbytes parameter has different name 'n' in implementation
338
336
asyncio.selector_events.BaseSelectorEventLoop.sock_recv # nbytes parameter has different name 'n' in implementation
339
337
338
+
_asyncio.Future.__init__ # Usually initialized from c object
339
+
asyncio.Future.__init__ # Usually initialized from c object
340
+
asyncio.futures.Future.__init__ # Usually initialized from c object
0 commit comments