basedpyright 1.12.6 → 1.13.0

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.
Files changed (60) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/stdlib/_ast.pyi +279 -42
  6. package/dist/typeshed-fallback/stdlib/_bisect.pyi +149 -12
  7. package/dist/typeshed-fallback/stdlib/_codecs.pyi +125 -14
  8. package/dist/typeshed-fallback/stdlib/_csv.pyi +130 -7
  9. package/dist/typeshed-fallback/stdlib/_ctypes.pyi +72 -17
  10. package/dist/typeshed-fallback/stdlib/_curses.pyi +626 -78
  11. package/dist/typeshed-fallback/stdlib/_decimal.pyi +775 -153
  12. package/dist/typeshed-fallback/stdlib/_heapq.pyi +61 -5
  13. package/dist/typeshed-fallback/stdlib/_imp.pyi +70 -15
  14. package/dist/typeshed-fallback/stdlib/_json.pyi +55 -12
  15. package/dist/typeshed-fallback/stdlib/_locale.pyi +63 -12
  16. package/dist/typeshed-fallback/stdlib/_lsprof.pyi +61 -4
  17. package/dist/typeshed-fallback/stdlib/_operator.pyi +238 -62
  18. package/dist/typeshed-fallback/stdlib/_posixsubprocess.pyi +25 -1
  19. package/dist/typeshed-fallback/stdlib/_random.pyi +23 -5
  20. package/dist/typeshed-fallback/stdlib/_socket.pyi +618 -63
  21. package/dist/typeshed-fallback/stdlib/_stat.pyi +140 -13
  22. package/dist/typeshed-fallback/stdlib/_thread.pyi +215 -22
  23. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +44 -11
  24. package/dist/typeshed-fallback/stdlib/_tracemalloc.pyi +71 -10
  25. package/dist/typeshed-fallback/stdlib/_warnings.pyi +53 -6
  26. package/dist/typeshed-fallback/stdlib/_weakref.pyi +43 -10
  27. package/dist/typeshed-fallback/stdlib/_winapi.pyi +255 -255
  28. package/dist/typeshed-fallback/stdlib/array.pyi +233 -44
  29. package/dist/typeshed-fallback/stdlib/atexit.pyi +50 -5
  30. package/dist/typeshed-fallback/stdlib/audioop.pyi +78 -26
  31. package/dist/typeshed-fallback/stdlib/binascii.pyi +105 -18
  32. package/dist/typeshed-fallback/stdlib/builtins.pyi +5254 -829
  33. package/dist/typeshed-fallback/stdlib/cmath.pyi +99 -23
  34. package/dist/typeshed-fallback/stdlib/errno.pyi +15 -0
  35. package/dist/typeshed-fallback/stdlib/faulthandler.pyi +33 -8
  36. package/dist/typeshed-fallback/stdlib/fcntl.pyi +199 -8
  37. package/dist/typeshed-fallback/stdlib/gc.pyi +130 -18
  38. package/dist/typeshed-fallback/stdlib/grp.pyi +58 -7
  39. package/dist/typeshed-fallback/stdlib/itertools.pyi +281 -42
  40. package/dist/typeshed-fallback/stdlib/marshal.pyi +82 -4
  41. package/dist/typeshed-fallback/stdlib/math.pyi +357 -61
  42. package/dist/typeshed-fallback/stdlib/mmap.pyi +47 -8
  43. package/dist/typeshed-fallback/stdlib/msvcrt.pyi +32 -32
  44. package/dist/typeshed-fallback/stdlib/nt.pyi +118 -111
  45. package/dist/typeshed-fallback/stdlib/parser.pyi +55 -24
  46. package/dist/typeshed-fallback/stdlib/posix.pyi +7 -0
  47. package/dist/typeshed-fallback/stdlib/pwd.pyi +60 -10
  48. package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +61 -12
  49. package/dist/typeshed-fallback/stdlib/readline.pyi +184 -27
  50. package/dist/typeshed-fallback/stdlib/resource.pyi +56 -16
  51. package/dist/typeshed-fallback/stdlib/select.pyi +97 -5
  52. package/dist/typeshed-fallback/stdlib/spwd.pyi +60 -11
  53. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +386 -48
  54. package/dist/typeshed-fallback/stdlib/syslog.pyi +27 -7
  55. package/dist/typeshed-fallback/stdlib/termios.pyi +88 -8
  56. package/dist/typeshed-fallback/stdlib/time.pyi +314 -37
  57. package/dist/typeshed-fallback/stdlib/unicodedata.pyi +264 -34
  58. package/dist/typeshed-fallback/stdlib/winreg.pyi +172 -132
  59. package/dist/typeshed-fallback/stdlib/zlib.pyi +108 -7
  60. package/package.json +1 -1
@@ -1,111 +1,118 @@
1
- import sys
2
-
3
- if sys.platform == "win32":
4
- # Actually defined here and re-exported from os at runtime,
5
- # but this leads to less code duplication
6
- from os import (
7
- F_OK as F_OK,
8
- O_APPEND as O_APPEND,
9
- O_BINARY as O_BINARY,
10
- O_CREAT as O_CREAT,
11
- O_EXCL as O_EXCL,
12
- O_NOINHERIT as O_NOINHERIT,
13
- O_RANDOM as O_RANDOM,
14
- O_RDONLY as O_RDONLY,
15
- O_RDWR as O_RDWR,
16
- O_SEQUENTIAL as O_SEQUENTIAL,
17
- O_SHORT_LIVED as O_SHORT_LIVED,
18
- O_TEMPORARY as O_TEMPORARY,
19
- O_TEXT as O_TEXT,
20
- O_TRUNC as O_TRUNC,
21
- O_WRONLY as O_WRONLY,
22
- P_DETACH as P_DETACH,
23
- P_NOWAIT as P_NOWAIT,
24
- P_NOWAITO as P_NOWAITO,
25
- P_OVERLAY as P_OVERLAY,
26
- P_WAIT as P_WAIT,
27
- R_OK as R_OK,
28
- TMP_MAX as TMP_MAX,
29
- W_OK as W_OK,
30
- X_OK as X_OK,
31
- DirEntry as DirEntry,
32
- abort as abort,
33
- access as access,
34
- chdir as chdir,
35
- chmod as chmod,
36
- close as close,
37
- closerange as closerange,
38
- cpu_count as cpu_count,
39
- device_encoding as device_encoding,
40
- dup as dup,
41
- dup2 as dup2,
42
- error as error,
43
- execv as execv,
44
- execve as execve,
45
- fspath as fspath,
46
- fstat as fstat,
47
- fsync as fsync,
48
- ftruncate as ftruncate,
49
- get_handle_inheritable as get_handle_inheritable,
50
- get_inheritable as get_inheritable,
51
- get_terminal_size as get_terminal_size,
52
- getcwd as getcwd,
53
- getcwdb as getcwdb,
54
- getlogin as getlogin,
55
- getpid as getpid,
56
- getppid as getppid,
57
- isatty as isatty,
58
- kill as kill,
59
- link as link,
60
- listdir as listdir,
61
- lseek as lseek,
62
- lstat as lstat,
63
- mkdir as mkdir,
64
- open as open,
65
- pipe as pipe,
66
- putenv as putenv,
67
- read as read,
68
- readlink as readlink,
69
- remove as remove,
70
- rename as rename,
71
- replace as replace,
72
- rmdir as rmdir,
73
- scandir as scandir,
74
- set_handle_inheritable as set_handle_inheritable,
75
- set_inheritable as set_inheritable,
76
- spawnv as spawnv,
77
- spawnve as spawnve,
78
- startfile as startfile,
79
- stat as stat,
80
- stat_result as stat_result,
81
- statvfs_result as statvfs_result,
82
- strerror as strerror,
83
- symlink as symlink,
84
- system as system,
85
- terminal_size as terminal_size,
86
- times as times,
87
- times_result as times_result,
88
- truncate as truncate,
89
- umask as umask,
90
- uname_result as uname_result,
91
- unlink as unlink,
92
- urandom as urandom,
93
- utime as utime,
94
- waitpid as waitpid,
95
- write as write,
96
- )
97
-
98
- if sys.version_info >= (3, 9):
99
- from os import unsetenv as unsetenv, waitstatus_to_exitcode as waitstatus_to_exitcode
100
- if sys.version_info >= (3, 11):
101
- from os import EX_OK as EX_OK
102
- if sys.version_info >= (3, 12):
103
- from os import (
104
- get_blocking as get_blocking,
105
- listdrives as listdrives,
106
- listmounts as listmounts,
107
- listvolumes as listvolumes,
108
- set_blocking as set_blocking,
109
- )
110
-
111
- environ: dict[str, str]
1
+ """
2
+ This module provides access to operating system functionality that is
3
+ standardized by the C Standard and the POSIX standard (a thinly
4
+ disguised Unix interface). Refer to the library manual and
5
+ corresponding Unix manual entries for more information on calls.
6
+ """
7
+
8
+ import sys
9
+
10
+ if sys.platform == "win32":
11
+ # Actually defined here and re-exported from os at runtime,
12
+ # but this leads to less code duplication
13
+ from os import (
14
+ F_OK as F_OK,
15
+ O_APPEND as O_APPEND,
16
+ O_BINARY as O_BINARY,
17
+ O_CREAT as O_CREAT,
18
+ O_EXCL as O_EXCL,
19
+ O_NOINHERIT as O_NOINHERIT,
20
+ O_RANDOM as O_RANDOM,
21
+ O_RDONLY as O_RDONLY,
22
+ O_RDWR as O_RDWR,
23
+ O_SEQUENTIAL as O_SEQUENTIAL,
24
+ O_SHORT_LIVED as O_SHORT_LIVED,
25
+ O_TEMPORARY as O_TEMPORARY,
26
+ O_TEXT as O_TEXT,
27
+ O_TRUNC as O_TRUNC,
28
+ O_WRONLY as O_WRONLY,
29
+ P_DETACH as P_DETACH,
30
+ P_NOWAIT as P_NOWAIT,
31
+ P_NOWAITO as P_NOWAITO,
32
+ P_OVERLAY as P_OVERLAY,
33
+ P_WAIT as P_WAIT,
34
+ R_OK as R_OK,
35
+ TMP_MAX as TMP_MAX,
36
+ W_OK as W_OK,
37
+ X_OK as X_OK,
38
+ DirEntry as DirEntry,
39
+ abort as abort,
40
+ access as access,
41
+ chdir as chdir,
42
+ chmod as chmod,
43
+ close as close,
44
+ closerange as closerange,
45
+ cpu_count as cpu_count,
46
+ device_encoding as device_encoding,
47
+ dup as dup,
48
+ dup2 as dup2,
49
+ error as error,
50
+ execv as execv,
51
+ execve as execve,
52
+ fspath as fspath,
53
+ fstat as fstat,
54
+ fsync as fsync,
55
+ ftruncate as ftruncate,
56
+ get_handle_inheritable as get_handle_inheritable,
57
+ get_inheritable as get_inheritable,
58
+ get_terminal_size as get_terminal_size,
59
+ getcwd as getcwd,
60
+ getcwdb as getcwdb,
61
+ getlogin as getlogin,
62
+ getpid as getpid,
63
+ getppid as getppid,
64
+ isatty as isatty,
65
+ kill as kill,
66
+ link as link,
67
+ listdir as listdir,
68
+ lseek as lseek,
69
+ lstat as lstat,
70
+ mkdir as mkdir,
71
+ open as open,
72
+ pipe as pipe,
73
+ putenv as putenv,
74
+ read as read,
75
+ readlink as readlink,
76
+ remove as remove,
77
+ rename as rename,
78
+ replace as replace,
79
+ rmdir as rmdir,
80
+ scandir as scandir,
81
+ set_handle_inheritable as set_handle_inheritable,
82
+ set_inheritable as set_inheritable,
83
+ spawnv as spawnv,
84
+ spawnve as spawnve,
85
+ startfile as startfile,
86
+ stat as stat,
87
+ stat_result as stat_result,
88
+ statvfs_result as statvfs_result,
89
+ strerror as strerror,
90
+ symlink as symlink,
91
+ system as system,
92
+ terminal_size as terminal_size,
93
+ times as times,
94
+ times_result as times_result,
95
+ truncate as truncate,
96
+ umask as umask,
97
+ uname_result as uname_result,
98
+ unlink as unlink,
99
+ urandom as urandom,
100
+ utime as utime,
101
+ waitpid as waitpid,
102
+ write as write,
103
+ )
104
+
105
+ if sys.version_info >= (3, 9):
106
+ from os import unsetenv as unsetenv, waitstatus_to_exitcode as waitstatus_to_exitcode
107
+ if sys.version_info >= (3, 11):
108
+ from os import EX_OK as EX_OK
109
+ if sys.version_info >= (3, 12):
110
+ from os import (
111
+ get_blocking as get_blocking,
112
+ listdrives as listdrives,
113
+ listmounts as listmounts,
114
+ listvolumes as listvolumes,
115
+ set_blocking as set_blocking,
116
+ )
117
+
118
+ environ: dict[str, str]
@@ -1,24 +1,55 @@
1
- from _typeshed import StrOrBytesPath
2
- from collections.abc import Sequence
3
- from types import CodeType
4
- from typing import Any, final
5
-
6
- def expr(source: str) -> STType: ...
7
- def suite(source: str) -> STType: ...
8
- def sequence2st(sequence: Sequence[Any]) -> STType: ...
9
- def tuple2st(sequence: Sequence[Any]) -> STType: ...
10
- def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
11
- def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...
12
- def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ...
13
- def isexpr(st: STType) -> bool: ...
14
- def issuite(st: STType) -> bool: ...
15
-
16
- class ParserError(Exception): ...
17
-
18
- @final
19
- class STType:
20
- def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
21
- def isexpr(self) -> bool: ...
22
- def issuite(self) -> bool: ...
23
- def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
24
- def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...
1
+ """This is an interface to Python's internal parser."""
2
+
3
+ from _typeshed import StrOrBytesPath
4
+ from collections.abc import Sequence
5
+ from types import CodeType
6
+ from typing import Any, final
7
+
8
+ def expr(source: str) -> STType:
9
+ """Creates an ST object from an expression."""
10
+ ...
11
+ def suite(source: str) -> STType:
12
+ """Creates an ST object from a suite."""
13
+ ...
14
+ def sequence2st(sequence: Sequence[Any]) -> STType:
15
+ """Creates an ST object from a tree representation."""
16
+ ...
17
+ def tuple2st(sequence: Sequence[Any]) -> STType:
18
+ """Creates an ST object from a tree representation."""
19
+ ...
20
+ def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]:
21
+ """Creates a list-tree representation of an ST."""
22
+ ...
23
+ def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]:
24
+ """Creates a tuple-tree representation of an ST."""
25
+ ...
26
+ def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType:
27
+ """Compiles an ST object into a code object."""
28
+ ...
29
+ def isexpr(st: STType) -> bool:
30
+ """Determines if an ST object was created from an expression."""
31
+ ...
32
+ def issuite(st: STType) -> bool:
33
+ """Determines if an ST object was created from a suite."""
34
+ ...
35
+
36
+ class ParserError(Exception): ...
37
+
38
+ @final
39
+ class STType:
40
+ """Intermediate representation of a Python parse tree."""
41
+ def compile(self, filename: StrOrBytesPath = ...) -> CodeType:
42
+ """Compile this ST object into a code object."""
43
+ ...
44
+ def isexpr(self) -> bool:
45
+ """Determines if this ST object was created from an expression."""
46
+ ...
47
+ def issuite(self) -> bool:
48
+ """Determines if this ST object was created from a suite."""
49
+ ...
50
+ def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]:
51
+ """Creates a list-tree representation of this ST."""
52
+ ...
53
+ def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]:
54
+ """Creates a tuple-tree representation of this ST."""
55
+ ...
@@ -1,3 +1,10 @@
1
+ """
2
+ This module provides access to operating system functionality that is
3
+ standardized by the C Standard and the POSIX standard (a thinly
4
+ disguised Unix interface). Refer to the library manual and
5
+ corresponding Unix manual entries for more information on calls.
6
+ """
7
+
1
8
  import sys
2
9
 
3
10
  if sys.platform != "win32":
@@ -1,3 +1,14 @@
1
+ """
2
+ This module provides access to the Unix password database.
3
+ It is available on all Unix versions.
4
+
5
+ Password database entries are reported as 7-tuples containing the following
6
+ items from the password database (see `<pwd.h>'), in order:
7
+ pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell.
8
+ The uid and gid items are integers, all others are strings. An
9
+ exception is raised if the entry asked for cannot be found.
10
+ """
11
+
1
12
  import sys
2
13
  from _typeshed import structseq
3
14
  from typing import Any, Final, final
@@ -5,24 +16,63 @@ from typing import Any, Final, final
5
16
  if sys.platform != "win32":
6
17
  @final
7
18
  class struct_passwd(structseq[Any], tuple[str, str, int, int, str, str, str]):
19
+ """
20
+ pwd.struct_passwd: Results from getpw*() routines.
21
+
22
+ This object may be accessed either as a tuple of
23
+ (pw_name,pw_passwd,pw_uid,pw_gid,pw_gecos,pw_dir,pw_shell)
24
+ or via the object attributes as named in the above tuple.
25
+ """
8
26
  if sys.version_info >= (3, 10):
9
27
  __match_args__: Final = ("pw_name", "pw_passwd", "pw_uid", "pw_gid", "pw_gecos", "pw_dir", "pw_shell")
10
28
 
11
29
  @property
12
- def pw_name(self) -> str: ...
30
+ def pw_name(self) -> str:
31
+ """user name"""
32
+ ...
13
33
  @property
14
- def pw_passwd(self) -> str: ...
34
+ def pw_passwd(self) -> str:
35
+ """password"""
36
+ ...
15
37
  @property
16
- def pw_uid(self) -> int: ...
38
+ def pw_uid(self) -> int:
39
+ """user id"""
40
+ ...
17
41
  @property
18
- def pw_gid(self) -> int: ...
42
+ def pw_gid(self) -> int:
43
+ """group id"""
44
+ ...
19
45
  @property
20
- def pw_gecos(self) -> str: ...
46
+ def pw_gecos(self) -> str:
47
+ """real name"""
48
+ ...
21
49
  @property
22
- def pw_dir(self) -> str: ...
50
+ def pw_dir(self) -> str:
51
+ """home directory"""
52
+ ...
23
53
  @property
24
- def pw_shell(self) -> str: ...
54
+ def pw_shell(self) -> str:
55
+ """shell program"""
56
+ ...
57
+
58
+ def getpwall() -> list[struct_passwd]:
59
+ """
60
+ Return a list of all available password database entries, in arbitrary order.
61
+
62
+ See help(pwd) for more on password database entries.
63
+ """
64
+ ...
65
+ def getpwuid(uid: int, /) -> struct_passwd:
66
+ """
67
+ Return the password database entry for the given numeric user ID.
68
+
69
+ See `help(pwd)` for more on password database entries.
70
+ """
71
+ ...
72
+ def getpwnam(name: str, /) -> struct_passwd:
73
+ """
74
+ Return the password database entry for the given user name.
25
75
 
26
- def getpwall() -> list[struct_passwd]: ...
27
- def getpwuid(uid: int, /) -> struct_passwd: ...
28
- def getpwnam(name: str, /) -> struct_passwd: ...
76
+ See `help(pwd)` for more on password database entries.
77
+ """
78
+ ...
@@ -1,3 +1,5 @@
1
+ """Python wrapper for Expat parser."""
2
+
1
3
  from _typeshed import ReadableBuffer, SupportsRead
2
4
  from collections.abc import Callable
3
5
  from pyexpat import errors as errors, model as model
@@ -24,16 +26,59 @@ _Model: TypeAlias = tuple[int, int, str | None, tuple[Any, ...]]
24
26
 
25
27
  @final
26
28
  class XMLParserType:
27
- def Parse(self, data: str | ReadableBuffer, isfinal: bool = False, /) -> int: ...
28
- def ParseFile(self, file: SupportsRead[bytes], /) -> int: ...
29
- def SetBase(self, base: str, /) -> None: ...
30
- def GetBase(self) -> str | None: ...
31
- def GetInputContext(self) -> bytes | None: ...
32
- def ExternalEntityParserCreate(self, context: str | None, encoding: str = ..., /) -> XMLParserType: ...
33
- def SetParamEntityParsing(self, flag: int, /) -> int: ...
34
- def UseForeignDTD(self, flag: bool = True, /) -> None: ...
35
- def GetReparseDeferralEnabled(self) -> bool: ...
36
- def SetReparseDeferralEnabled(self, enabled: bool, /) -> None: ...
29
+ """XML parser"""
30
+ def Parse(self, data: str | ReadableBuffer, isfinal: bool = False, /) -> int:
31
+ """
32
+ Parse XML data.
33
+
34
+ `isfinal' should be true at end of input.
35
+ """
36
+ ...
37
+ def ParseFile(self, file: SupportsRead[bytes], /) -> int:
38
+ """Parse XML data from file-like object."""
39
+ ...
40
+ def SetBase(self, base: str, /) -> None:
41
+ """Set the base URL for the parser."""
42
+ ...
43
+ def GetBase(self) -> str | None:
44
+ """Return base URL string for the parser."""
45
+ ...
46
+ def GetInputContext(self) -> bytes | None:
47
+ """
48
+ Return the untranslated text of the input that caused the current event.
49
+
50
+ If the event was generated by a large amount of text (such as a start tag
51
+ for an element with many attributes), not all of the text may be available.
52
+ """
53
+ ...
54
+ def ExternalEntityParserCreate(self, context: str | None, encoding: str = ..., /) -> XMLParserType:
55
+ """Create a parser for parsing an external entity based on the information passed to the ExternalEntityRefHandler."""
56
+ ...
57
+ def SetParamEntityParsing(self, flag: int, /) -> int:
58
+ """
59
+ Controls parsing of parameter entities (including the external DTD subset).
60
+
61
+ Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER,
62
+ XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and
63
+ XML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag
64
+ was successful.
65
+ """
66
+ ...
67
+ def UseForeignDTD(self, flag: bool = True, /) -> None:
68
+ """
69
+ Allows the application to provide an artificial external subset if one is not specified as part of the document instance.
70
+
71
+ This readily allows the use of a 'default' document type controlled by the
72
+ application, while still getting the advantage of providing document type
73
+ information to the parser. 'flag' defaults to True if not provided.
74
+ """
75
+ ...
76
+ def GetReparseDeferralEnabled(self) -> bool:
77
+ """Retrieve reparse deferral enabled status; always returns false with Expat <2.6.0."""
78
+ ...
79
+ def SetReparseDeferralEnabled(self, enabled: bool, /) -> None:
80
+ """Enable/Disable reparse deferral; enabled by default with Expat >=2.6.0."""
81
+ ...
37
82
  @property
38
83
  def intern(self) -> dict[str, str]: ...
39
84
  buffer_size: int
@@ -77,9 +122,13 @@ class XMLParserType:
77
122
  ExternalEntityRefHandler: Callable[[str, str | None, str | None, str | None], int] | None
78
123
  SkippedEntityHandler: Callable[[str, bool], Any] | None
79
124
 
80
- def ErrorString(code: int, /) -> str: ...
125
+ def ErrorString(code: int, /) -> str:
126
+ """Returns string error for given number."""
127
+ ...
81
128
 
82
129
  # intern is undocumented
83
130
  def ParserCreate(
84
131
  encoding: str | None = None, namespace_separator: str | None = None, intern: dict[str, Any] | None = None
85
- ) -> XMLParserType: ...
132
+ ) -> XMLParserType:
133
+ """Return a new XML parser object."""
134
+ ...