mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 04:41:30 +08:00
Upgrade pyright, improve pyright config files (#8072)
This commit is contained in:
@@ -5,7 +5,7 @@ import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
_PYRIGHT_VERSION = "1.1.248" # Must match .github/workflows/tests.yml.
|
||||
_PYRIGHT_VERSION = "1.1.254" # Must match .github/workflows/tests.yml.
|
||||
_WELL_KNOWN_FILE = Path("tests", "pyright_test.py")
|
||||
|
||||
|
||||
|
||||
@@ -26,11 +26,11 @@ _collections_abc.Set.__rxor__
|
||||
_csv.Dialect.__init__ # C __init__ signature is inaccurate
|
||||
_socket.*
|
||||
_threading_local.local.__new__
|
||||
_weakref.ref.__call__
|
||||
abc.ABCMeta.__new__ # pytype wants the parameter named cls and not mcls
|
||||
_weakref.ref.* # Alias for _weakref.ReferenceType, problems should be fixed there
|
||||
_weakref.CallableProxyType.__getattr__ # Should have all attributes of proxy
|
||||
_weakref.ProxyType.__getattr__ # Should have all attributes of proxy
|
||||
_weakref.ReferenceType.__call__ # C function default annotation is wrong
|
||||
_weakref.ReferenceType.__init__ # Runtime defines __new__ but stubtest thinks __init__ is also defined.
|
||||
argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic
|
||||
asynchat.async_chat.encoding # Removal planned for 3.12, can add if someone needs this
|
||||
asynchat.async_chat.use_encoding # Removal planned for 3.12, can add if someone needs this
|
||||
@@ -221,11 +221,11 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
|
||||
warnings.catch_warnings.__init__ # Defining this ruins the __new__ overrides
|
||||
weakref.CallableProxyType.__getattr__ # Should have all attributes of proxy
|
||||
weakref.ProxyType.__getattr__ # Should have all attributes of proxy
|
||||
weakref.ReferenceType.__call__ # C function default annotation is wrong
|
||||
weakref.ReferenceType.* # Alias for _weakref.ReferenceType, problems should be fixed there
|
||||
weakref.WeakKeyDictionary.get
|
||||
weakref.WeakKeyDictionary.update
|
||||
weakref.WeakValueDictionary.get
|
||||
weakref.ref.__call__
|
||||
weakref.ref.* # Alias for _weakref.ReferenceType, problems should be fixed there
|
||||
webbrowser.UnixBrowser.remote_action # always overridden in inheriting class
|
||||
webbrowser.UnixBrowser.remote_action_newtab # always overridden in inheriting class
|
||||
webbrowser.UnixBrowser.remote_action_newwin # always overridden in inheriting class
|
||||
|
||||
Reference in New Issue
Block a user