basedpyright 1.40.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6746,10 +6746,9 @@ class BaseException:
|
|
|
6746
6746
|
|
|
6747
6747
|
class GeneratorExit(BaseException):
|
|
6748
6748
|
"""Request that a generator exit."""
|
|
6749
|
-
|
|
6749
|
+
|
|
6750
6750
|
class KeyboardInterrupt(BaseException):
|
|
6751
6751
|
"""Program interrupted by user."""
|
|
6752
|
-
...
|
|
6753
6752
|
|
|
6754
6753
|
@disjoint_base
|
|
6755
6754
|
class SystemExit(BaseException):
|
|
@@ -6758,7 +6757,6 @@ class SystemExit(BaseException):
|
|
|
6758
6757
|
|
|
6759
6758
|
class Exception(BaseException):
|
|
6760
6759
|
"""Common base class for all non-exit exceptions."""
|
|
6761
|
-
...
|
|
6762
6760
|
|
|
6763
6761
|
@disjoint_base
|
|
6764
6762
|
class StopIteration(Exception):
|
|
@@ -6783,10 +6781,9 @@ if sys.platform == "win32":
|
|
|
6783
6781
|
|
|
6784
6782
|
class ArithmeticError(Exception):
|
|
6785
6783
|
"""Base class for arithmetic errors."""
|
|
6786
|
-
|
|
6784
|
+
|
|
6787
6785
|
class AssertionError(Exception):
|
|
6788
6786
|
"""Assertion failed."""
|
|
6789
|
-
...
|
|
6790
6787
|
|
|
6791
6788
|
@disjoint_base
|
|
6792
6789
|
class AttributeError(Exception):
|
|
@@ -6797,10 +6794,9 @@ class AttributeError(Exception):
|
|
|
6797
6794
|
|
|
6798
6795
|
class BufferError(Exception):
|
|
6799
6796
|
"""Buffer error."""
|
|
6800
|
-
|
|
6797
|
+
|
|
6801
6798
|
class EOFError(Exception):
|
|
6802
6799
|
"""Read beyond end of file."""
|
|
6803
|
-
...
|
|
6804
6800
|
|
|
6805
6801
|
@disjoint_base
|
|
6806
6802
|
class ImportError(Exception):
|
|
@@ -6813,14 +6809,14 @@ class ImportError(Exception):
|
|
|
6813
6809
|
name_from: str | None # undocumented
|
|
6814
6810
|
|
|
6815
6811
|
if sys.version_info >= (3, 15):
|
|
6816
|
-
class ImportCycleError(ImportError):
|
|
6812
|
+
class ImportCycleError(ImportError):
|
|
6813
|
+
"""Import produces a cycle."""
|
|
6817
6814
|
|
|
6818
6815
|
class LookupError(Exception):
|
|
6819
6816
|
"""Base class for lookup errors."""
|
|
6820
|
-
|
|
6817
|
+
|
|
6821
6818
|
class MemoryError(Exception):
|
|
6822
6819
|
"""Out of memory."""
|
|
6823
|
-
...
|
|
6824
6820
|
|
|
6825
6821
|
@disjoint_base
|
|
6826
6822
|
class NameError(Exception):
|
|
@@ -6830,13 +6826,12 @@ class NameError(Exception):
|
|
|
6830
6826
|
|
|
6831
6827
|
class ReferenceError(Exception):
|
|
6832
6828
|
"""Weak ref proxy used after referent went away."""
|
|
6833
|
-
|
|
6829
|
+
|
|
6834
6830
|
class RuntimeError(Exception):
|
|
6835
6831
|
"""Unspecified run-time error."""
|
|
6836
|
-
|
|
6832
|
+
|
|
6837
6833
|
class StopAsyncIteration(Exception):
|
|
6838
6834
|
"""Signal the end from iterator.__anext__()."""
|
|
6839
|
-
...
|
|
6840
6835
|
|
|
6841
6836
|
@disjoint_base
|
|
6842
6837
|
class SyntaxError(Exception):
|
|
@@ -6868,40 +6863,38 @@ class SyntaxError(Exception):
|
|
|
6868
6863
|
# the arguments from the info tuple are not parsed. This form is omitted.
|
|
6869
6864
|
|
|
6870
6865
|
class SystemError(Exception):
|
|
6871
|
-
"""
|
|
6872
|
-
Internal error in the Python interpreter.
|
|
6866
|
+
"""Internal error in the Python interpreter.
|
|
6873
6867
|
|
|
6874
6868
|
Please report this to the Python maintainer, along with the traceback,
|
|
6875
6869
|
the Python version, and the hardware/OS platform and version.
|
|
6876
6870
|
"""
|
|
6877
|
-
|
|
6871
|
+
|
|
6878
6872
|
class TypeError(Exception):
|
|
6879
6873
|
"""Inappropriate argument type."""
|
|
6880
|
-
|
|
6874
|
+
|
|
6881
6875
|
class ValueError(Exception):
|
|
6882
6876
|
"""Inappropriate argument value (of correct type)."""
|
|
6883
|
-
|
|
6877
|
+
|
|
6884
6878
|
class FloatingPointError(ArithmeticError):
|
|
6885
6879
|
"""Floating-point operation failed."""
|
|
6886
|
-
|
|
6880
|
+
|
|
6887
6881
|
class OverflowError(ArithmeticError):
|
|
6888
6882
|
"""Result too large to be represented."""
|
|
6889
|
-
|
|
6883
|
+
|
|
6890
6884
|
class ZeroDivisionError(ArithmeticError):
|
|
6891
6885
|
"""Second argument to a division or modulo operation was zero."""
|
|
6892
|
-
|
|
6886
|
+
|
|
6893
6887
|
class ModuleNotFoundError(ImportError):
|
|
6894
6888
|
"""Module not found."""
|
|
6895
|
-
|
|
6889
|
+
|
|
6896
6890
|
class IndexError(LookupError):
|
|
6897
6891
|
"""Sequence index out of range."""
|
|
6898
|
-
|
|
6892
|
+
|
|
6899
6893
|
class KeyError(LookupError):
|
|
6900
6894
|
"""Mapping key not found."""
|
|
6901
|
-
|
|
6895
|
+
|
|
6902
6896
|
class UnboundLocalError(NameError):
|
|
6903
6897
|
"""Local name referenced but not bound to a value."""
|
|
6904
|
-
...
|
|
6905
6898
|
|
|
6906
6899
|
class BlockingIOError(OSError):
|
|
6907
6900
|
"""I/O operation would block."""
|
|
@@ -6909,61 +6902,60 @@ class BlockingIOError(OSError):
|
|
|
6909
6902
|
|
|
6910
6903
|
class ChildProcessError(OSError):
|
|
6911
6904
|
"""Child process error."""
|
|
6912
|
-
|
|
6905
|
+
|
|
6913
6906
|
class ConnectionError(OSError):
|
|
6914
6907
|
"""Connection error."""
|
|
6915
|
-
|
|
6908
|
+
|
|
6916
6909
|
class BrokenPipeError(ConnectionError):
|
|
6917
6910
|
"""Broken pipe."""
|
|
6918
|
-
|
|
6911
|
+
|
|
6919
6912
|
class ConnectionAbortedError(ConnectionError):
|
|
6920
6913
|
"""Connection aborted."""
|
|
6921
|
-
|
|
6914
|
+
|
|
6922
6915
|
class ConnectionRefusedError(ConnectionError):
|
|
6923
6916
|
"""Connection refused."""
|
|
6924
|
-
|
|
6917
|
+
|
|
6925
6918
|
class ConnectionResetError(ConnectionError):
|
|
6926
6919
|
"""Connection reset."""
|
|
6927
|
-
|
|
6920
|
+
|
|
6928
6921
|
class FileExistsError(OSError):
|
|
6929
6922
|
"""File already exists."""
|
|
6930
|
-
|
|
6923
|
+
|
|
6931
6924
|
class FileNotFoundError(OSError):
|
|
6932
6925
|
"""File not found."""
|
|
6933
|
-
|
|
6926
|
+
|
|
6934
6927
|
class InterruptedError(OSError):
|
|
6935
6928
|
"""Interrupted by signal."""
|
|
6936
|
-
|
|
6929
|
+
|
|
6937
6930
|
class IsADirectoryError(OSError):
|
|
6938
6931
|
"""Operation doesn't work on directories."""
|
|
6939
|
-
|
|
6932
|
+
|
|
6940
6933
|
class NotADirectoryError(OSError):
|
|
6941
6934
|
"""Operation only works on directories."""
|
|
6942
|
-
|
|
6935
|
+
|
|
6943
6936
|
class PermissionError(OSError):
|
|
6944
6937
|
"""Not enough permissions."""
|
|
6945
|
-
|
|
6938
|
+
|
|
6946
6939
|
class ProcessLookupError(OSError):
|
|
6947
6940
|
"""Process not found."""
|
|
6948
|
-
|
|
6941
|
+
|
|
6949
6942
|
class TimeoutError(OSError):
|
|
6950
6943
|
"""Timeout expired."""
|
|
6951
|
-
|
|
6944
|
+
|
|
6952
6945
|
class NotImplementedError(RuntimeError):
|
|
6953
6946
|
"""Method or function hasn't been implemented yet."""
|
|
6954
|
-
|
|
6947
|
+
|
|
6955
6948
|
class RecursionError(RuntimeError):
|
|
6956
6949
|
"""Recursion limit exceeded."""
|
|
6957
|
-
|
|
6950
|
+
|
|
6958
6951
|
class IndentationError(SyntaxError):
|
|
6959
6952
|
"""Improper indentation."""
|
|
6960
|
-
|
|
6953
|
+
|
|
6961
6954
|
class TabError(IndentationError):
|
|
6962
6955
|
"""Improper mixture of spaces and tabs."""
|
|
6963
|
-
|
|
6956
|
+
|
|
6964
6957
|
class UnicodeError(ValueError):
|
|
6965
6958
|
"""Unicode related error."""
|
|
6966
|
-
...
|
|
6967
6959
|
|
|
6968
6960
|
@disjoint_base
|
|
6969
6961
|
class UnicodeDecodeError(UnicodeError):
|
|
@@ -6997,52 +6989,39 @@ class UnicodeTranslateError(UnicodeError):
|
|
|
6997
6989
|
|
|
6998
6990
|
class Warning(Exception):
|
|
6999
6991
|
"""Base class for warning categories."""
|
|
7000
|
-
|
|
6992
|
+
|
|
7001
6993
|
class UserWarning(Warning):
|
|
7002
6994
|
"""Base class for warnings generated by user code."""
|
|
7003
|
-
|
|
6995
|
+
|
|
7004
6996
|
class DeprecationWarning(Warning):
|
|
7005
6997
|
"""Base class for warnings about deprecated features."""
|
|
7006
|
-
|
|
6998
|
+
|
|
7007
6999
|
class SyntaxWarning(Warning):
|
|
7008
7000
|
"""Base class for warnings about dubious syntax."""
|
|
7009
|
-
|
|
7001
|
+
|
|
7010
7002
|
class RuntimeWarning(Warning):
|
|
7011
7003
|
"""Base class for warnings about dubious runtime behavior."""
|
|
7012
|
-
|
|
7004
|
+
|
|
7013
7005
|
class FutureWarning(Warning):
|
|
7014
|
-
"""
|
|
7015
|
-
|
|
7016
|
-
in the future.
|
|
7017
|
-
"""
|
|
7018
|
-
...
|
|
7006
|
+
"""Base class for warnings about constructs that will change semantically in the future."""
|
|
7007
|
+
|
|
7019
7008
|
class PendingDeprecationWarning(Warning):
|
|
7020
|
-
"""
|
|
7021
|
-
|
|
7022
|
-
in the future.
|
|
7023
|
-
"""
|
|
7024
|
-
...
|
|
7009
|
+
"""Base class for warnings about features which will be deprecated in the future."""
|
|
7010
|
+
|
|
7025
7011
|
class ImportWarning(Warning):
|
|
7026
7012
|
"""Base class for warnings about probable mistakes in module imports"""
|
|
7027
|
-
|
|
7013
|
+
|
|
7028
7014
|
class UnicodeWarning(Warning):
|
|
7029
|
-
"""
|
|
7030
|
-
|
|
7031
|
-
related to conversion problems.
|
|
7032
|
-
"""
|
|
7033
|
-
...
|
|
7015
|
+
"""Base class for warnings about Unicode related problems, mostly related to conversion problems."""
|
|
7016
|
+
|
|
7034
7017
|
class BytesWarning(Warning):
|
|
7035
|
-
"""
|
|
7036
|
-
|
|
7037
|
-
related to conversion from str or comparing to str.
|
|
7038
|
-
"""
|
|
7039
|
-
...
|
|
7018
|
+
"""Base class for warnings about bytes and buffer related problems, mostly related to conversion from str or comparing to str."""
|
|
7019
|
+
|
|
7040
7020
|
class ResourceWarning(Warning):
|
|
7041
7021
|
"""Base class for warnings about resource usage."""
|
|
7042
|
-
|
|
7022
|
+
|
|
7043
7023
|
class EncodingWarning(Warning):
|
|
7044
7024
|
"""Base class for warnings about encodings."""
|
|
7045
|
-
...
|
|
7046
7025
|
|
|
7047
7026
|
if sys.version_info >= (3, 11):
|
|
7048
7027
|
_BaseExceptionT_co = TypeVar("_BaseExceptionT_co", bound=BaseException, covariant=True, default=BaseException)
|
|
@@ -7102,6 +7081,7 @@ if sys.version_info >= (3, 11):
|
|
|
7102
7081
|
...
|
|
7103
7082
|
|
|
7104
7083
|
class ExceptionGroup(BaseExceptionGroup[_ExceptionT_co], Exception):
|
|
7084
|
+
"""A combination of multiple unrelated exceptions."""
|
|
7105
7085
|
def __new__(cls, message: str, exceptions: Sequence[_ExceptionT_co], /) -> Self: ...
|
|
7106
7086
|
def __init__(self, message: str, exceptions: Sequence[_ExceptionT_co], /) -> None: ...
|
|
7107
7087
|
@property
|
|
@@ -7131,4 +7111,3 @@ if sys.version_info >= (3, 11):
|
|
|
7131
7111
|
if sys.version_info >= (3, 13):
|
|
7132
7112
|
class PythonFinalizationError(RuntimeError):
|
|
7133
7113
|
"""Operation blocked during Python finalization."""
|
|
7134
|
-
...
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "basedpyright",
|
|
3
3
|
"displayName": "basedpyright",
|
|
4
4
|
"description": "a fork of pyright with various type checking improvements, pylance features and more.",
|
|
5
|
-
"version": "1.40.
|
|
5
|
+
"version": "1.40.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "detachhead"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@core-js/types": "^4.0.0-alpha.1",
|
|
23
|
-
"@rspack/cli": "^2.
|
|
24
|
-
"@rspack/core": "^2.
|
|
23
|
+
"@rspack/cli": "^2.1.3",
|
|
24
|
+
"@rspack/core": "^2.1.3",
|
|
25
25
|
"@types/is-ci": "^3.0.4",
|
|
26
26
|
"@types/node": "^25.9.2",
|
|
27
27
|
"copy-webpack-plugin": "^14.0.0",
|
|
@@ -41,9 +41,6 @@
|
|
|
41
41
|
"pyright": "index.js",
|
|
42
42
|
"pyright-langserver": "langserver.index.js"
|
|
43
43
|
},
|
|
44
|
-
"overrides": {
|
|
45
|
-
"tar": "7.5.11"
|
|
46
|
-
},
|
|
47
44
|
"scripts": {
|
|
48
45
|
"build": "rspack build -c rspack.config.js --mode production",
|
|
49
46
|
"clean": "shx rm -rf ./dist ./out LICENSE.txt",
|