basedpyright 1.16.0 → 1.17.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.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_ast.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +6 -3
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_operator.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/_stat.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/argparse.pyi +11 -1
- package/dist/typeshed-fallback/stdlib/array.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/ast.pyi +18 -17
- package/dist/typeshed-fallback/stdlib/builtins.pyi +7 -5
- package/dist/typeshed-fallback/stdlib/cmd.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/crypt.pyi +6 -5
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/datetime.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +120 -0
- package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -0
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +9 -4
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -4
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/email/message.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/utils.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +18 -7
- package/dist/typeshed-fallback/stdlib/ftplib.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +31 -36
- package/dist/typeshed-fallback/stdlib/marshal.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/math.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/operator.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +24 -2
- package/dist/typeshed-fallback/stdlib/poplib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pty.pyi +8 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +45 -43
- package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +12 -10
- package/dist/typeshed-fallback/stdlib/select.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/signal.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +8 -2
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/time.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +28 -4
- package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/tkinter/messagebox.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/typing.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/urllib/request.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +78 -3
- package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +1 -0
- package/dist/typeshed-fallback/stubs/JACK-Client/METADATA.toml +3 -1
- package/dist/typeshed-fallback/stubs/cachetools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/corus/corus/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/corus/io.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/readme.pyi +17 -0
- package/dist/typeshed-fallback/stubs/corus/corus/record.pyi +8 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/__init__.pyi +23 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/bsnlp.pyi +75 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/buriy.pyi +18 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/corpora.pyi +50 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/factru.pyi +74 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gareev.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gramru.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/lenta.pyi +19 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/librusec.pyi +14 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/meta.pyi +54 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/mokoron.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/morphoru.pyi +24 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ne5.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ods.pyi +46 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/omnia.pyi +49 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/persons.pyi +27 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ria.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/rudrec.pyi +27 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/russe.pyi +16 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/simlex.pyi +14 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/arzamas.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/common.pyi +77 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/fontanka.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/interfax.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/kp.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/lenta.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/magazines.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/nplus1.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/proza.pyi +8 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/social.pyi +15 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/subtitles.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/toloka.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ud.pyi +29 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wiki.pyi +20 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wikiner.pyi +19 -0
- package/dist/typeshed-fallback/stubs/corus/corus/third/WikiExtractor.pyi +227 -0
- package/dist/typeshed-fallback/stubs/corus/corus/third/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/corus/corus/zip.pyi +28 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/client.pyi +2 -2
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/validators.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +14 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +15 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +17 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +4 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/series.pyi +3 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +4 -5
- package/dist/typeshed-fallback/stubs/passlib/passlib/utils/handlers.pyi +6 -2
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +1 -1
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +4 -2
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/checker.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/compat.pyi +2 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +2 -2
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +24 -8
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +7 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +3 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/plot.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +136 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +2 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +6 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/dist.pyi +185 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/wheel.pyi +1 -1
- package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +3 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/flake8-2020/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/flake8-2020/flake8_2020.pyi +0 -26
- package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +0 -3
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/client.pyi +0 -331
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/matcher.pyi +0 -11
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/packettypes.pyi +0 -19
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/properties.pyi +0 -38
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/publish.pyi +0 -63
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/reasoncodes.pyi +0 -13
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribe.pyi +0 -39
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribeoptions.pyi +0 -24
- package/dist/typeshed-fallback/stubs/python-slugify/METADATA.toml +0 -3
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/__init__.pyi +0 -12
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/__version__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/slugify.pyi +0 -20
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/special.pyi +0 -8
- /package/dist/typeshed-fallback/stubs/{paho-mqtt/paho/__init__.pyi → corus/corus/path.pyi} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Callable, Collection, Hashable, Iterable, Iterator, Mapping, MutableMapping
|
|
3
|
+
from functools import cached_property
|
|
3
4
|
from typing import Any, ClassVar, TypeVar, overload
|
|
4
5
|
from typing_extensions import Self, TypeAlias
|
|
5
6
|
|
|
@@ -33,13 +34,17 @@ class Graph(Collection[_Node]):
|
|
|
33
34
|
edge_attr_dict_factory: ClassVar[_MapFactory] = ...
|
|
34
35
|
graph_attr_dict_factory: ClassVar[_MapFactory] = ...
|
|
35
36
|
|
|
37
|
+
graph: dict[str, Any]
|
|
38
|
+
|
|
36
39
|
def to_directed_class(self) -> type[DiGraph[_Node]]: ...
|
|
37
40
|
def to_undirected_class(self) -> type[Graph[_Node]]: ...
|
|
38
41
|
def __init__(self, incoming_graph_data: _Data[_Node] | None = None, **attr) -> None: ...
|
|
39
|
-
|
|
40
|
-
adj
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
@cached_property
|
|
43
|
+
def adj(self) -> AdjacencyView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
44
|
+
@property
|
|
45
|
+
def name(self) -> str: ...
|
|
46
|
+
@name.setter
|
|
47
|
+
def name(self, s: str) -> None: ...
|
|
43
48
|
def __getitem__(self, n: _Node) -> AtlasView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
44
49
|
def __iter__(self) -> Iterator[_Node]: ...
|
|
45
50
|
def __contains__(self, n: object) -> bool: ...
|
|
@@ -48,7 +53,8 @@ class Graph(Collection[_Node]):
|
|
|
48
53
|
def add_nodes_from(self, nodes_for_adding: Iterable[_NodePlus[_Node]], **attr) -> None: ...
|
|
49
54
|
def remove_node(self, n: _Node) -> None: ...
|
|
50
55
|
def remove_nodes_from(self, nodes: Iterable[_Node]) -> None: ...
|
|
51
|
-
|
|
56
|
+
@cached_property
|
|
57
|
+
def nodes(self) -> NodeView[_Node]: ...
|
|
52
58
|
def number_of_nodes(self) -> int: ...
|
|
53
59
|
def order(self) -> int: ...
|
|
54
60
|
def has_node(self, n: _Node) -> bool: ...
|
|
@@ -67,12 +73,12 @@ class Graph(Collection[_Node]):
|
|
|
67
73
|
) -> None: ...
|
|
68
74
|
def has_edge(self, u: _Node, v: _Node) -> bool: ...
|
|
69
75
|
def neighbors(self, n: _Node) -> Iterator[_Node]: ...
|
|
70
|
-
|
|
76
|
+
@cached_property
|
|
77
|
+
def edges(self) -> OutEdgeView[_Node]: ...
|
|
71
78
|
def get_edge_data(self, u: _Node, v: _Node, default: Incomplete | None = None) -> Mapping[str, Incomplete]: ...
|
|
72
79
|
def adjacency(self) -> Iterator[tuple[_Node, Mapping[_Node, Mapping[str, Incomplete]]]]: ...
|
|
73
|
-
|
|
74
|
-
degree
|
|
75
|
-
|
|
80
|
+
@cached_property
|
|
81
|
+
def degree(self) -> DiDegreeView[_Node]: ...
|
|
76
82
|
def clear(self) -> None: ...
|
|
77
83
|
def clear_edges(self) -> None: ...
|
|
78
84
|
def is_multigraph(self) -> bool: ...
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from functools import cached_property
|
|
3
|
+
|
|
4
|
+
from networkx.classes.coreviews import MultiAdjacencyView
|
|
1
5
|
from networkx.classes.digraph import DiGraph
|
|
2
6
|
from networkx.classes.graph import _Node
|
|
3
7
|
from networkx.classes.multigraph import MultiGraph
|
|
4
|
-
from networkx.classes.reportviews import InMultiDegreeView,
|
|
8
|
+
from networkx.classes.reportviews import InMultiDegreeView, OutMultiDegreeView, OutMultiEdgeView
|
|
5
9
|
|
|
6
10
|
class MultiDiGraph(MultiGraph[_Node], DiGraph[_Node]):
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
@cached_property
|
|
12
|
+
def succ(self) -> MultiAdjacencyView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
13
|
+
@cached_property
|
|
14
|
+
def pred(self) -> MultiAdjacencyView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
15
|
+
@cached_property
|
|
16
|
+
def out_edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
17
|
+
@cached_property
|
|
18
|
+
def in_edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
19
|
+
@cached_property
|
|
20
|
+
def in_degree(self) -> InMultiDegreeView[_Node]: ...
|
|
21
|
+
@cached_property
|
|
22
|
+
def out_degree(self) -> OutMultiDegreeView[_Node]: ...
|
|
10
23
|
def to_undirected(self, reciprocal: bool = False, as_view: bool = False) -> MultiGraph[_Node]: ... # type: ignore
|
|
11
24
|
def reverse(self, copy: bool = True) -> MultiDiGraph[_Node]: ...
|
|
12
25
|
def copy(self, as_view: bool = False) -> MultiDiGraph[_Node]: ...
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from functools import cached_property
|
|
2
3
|
from typing_extensions import TypeAlias
|
|
3
4
|
|
|
5
|
+
from networkx.classes.coreviews import MultiAdjacencyView
|
|
4
6
|
from networkx.classes.graph import Graph, _Node
|
|
5
7
|
from networkx.classes.multidigraph import MultiDiGraph
|
|
6
8
|
|
|
@@ -8,6 +10,8 @@ _MultiEdge: TypeAlias = tuple[_Node, _Node, int] # noqa: Y047
|
|
|
8
10
|
|
|
9
11
|
class MultiGraph(Graph[_Node]):
|
|
10
12
|
def __init__(self, incoming_graph_data: Incomplete | None = None, multigraph_input: bool | None = None, **attr) -> None: ...
|
|
13
|
+
@cached_property
|
|
14
|
+
def adj(self) -> MultiAdjacencyView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
11
15
|
def new_edge_key(self, u: _Node, v: _Node) -> int: ...
|
|
12
16
|
def add_edge(self, u_for_edge, v_for_edge, key: Incomplete | None = None, **attr): ... # type: ignore[override] # Has an additional `key` keyword argument
|
|
13
17
|
def remove_edge(self, u, v, key: Incomplete | None = None): ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from datetime import date, datetime, time, timedelta
|
|
2
2
|
from decimal import Decimal
|
|
3
|
+
from typing import Any
|
|
3
4
|
from typing_extensions import TypeAlias
|
|
4
5
|
|
|
5
6
|
from openpyxl.cell.rich_text import CellRichText
|
|
@@ -20,3 +21,4 @@ _CellValue: TypeAlias = ( # noqa: Y047 # Used in other modules
|
|
|
20
21
|
| DataTableFormula
|
|
21
22
|
| ArrayFormula
|
|
22
23
|
)
|
|
24
|
+
_AnyCellValue: TypeAlias = Any # Any of _CellValue # noqa: Y047 # Used in other modules
|
|
@@ -83,7 +83,9 @@ class Series(Serialisable):
|
|
|
83
83
|
explosion: _HasTagAndGet[ConvertibleToInt | None] | ConvertibleToInt | None = None,
|
|
84
84
|
extLst: Unused = None,
|
|
85
85
|
) -> None: ...
|
|
86
|
-
def to_tree(
|
|
86
|
+
def to_tree( # type: ignore[override]
|
|
87
|
+
self, tagname: str | None = None, idx: _HasTagAndGet[ConvertibleToInt] | ConvertibleToInt | None = None
|
|
88
|
+
) -> Element: ...
|
|
87
89
|
|
|
88
90
|
class XYSeries(Series):
|
|
89
91
|
# Same as parent
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
from _typeshed import Incomplete, SupportsGetItem, Unused
|
|
2
2
|
from collections.abc import Container, Generator
|
|
3
3
|
from datetime import datetime
|
|
4
|
-
from typing import
|
|
4
|
+
from typing import Final
|
|
5
5
|
from xml.etree.ElementTree import _FileRead
|
|
6
6
|
|
|
7
|
+
from openpyxl.cell import _AnyCellValue
|
|
7
8
|
from openpyxl.cell.cell import Cell
|
|
8
9
|
from openpyxl.cell.rich_text import CellRichText
|
|
9
10
|
from openpyxl.descriptors.serialisable import _ChildSerialisableTreeElement, _SerialisableTreeElement
|
|
@@ -86,12 +87,10 @@ class WorkSheetParser:
|
|
|
86
87
|
) -> None: ...
|
|
87
88
|
def parse(self) -> Generator[Incomplete, None, None]: ...
|
|
88
89
|
def parse_dimensions(self) -> _RangeBoundariesTuple | None: ...
|
|
89
|
-
|
|
90
|
-
def parse_cell(self, element) -> dict[str, Any]: ...
|
|
90
|
+
def parse_cell(self, element) -> dict[str, _AnyCellValue]: ...
|
|
91
91
|
def parse_formula(self, element): ...
|
|
92
92
|
def parse_column_dimensions(self, col: _HasAttrib) -> None: ...
|
|
93
|
-
|
|
94
|
-
def parse_row(self, row: _SupportsIterAndAttrib) -> tuple[int, list[dict[str, Any]]]: ...
|
|
93
|
+
def parse_row(self, row: _SupportsIterAndAttrib) -> tuple[int, list[dict[str, _AnyCellValue]]]: ...
|
|
95
94
|
def parse_formatting(self, element: _ChildSerialisableTreeElement) -> None: ...
|
|
96
95
|
def parse_sheet_protection(self, element: _SerialisableTreeElement) -> None: ...
|
|
97
96
|
def parse_extensions(self, element: _ChildSerialisableTreeElement) -> None: ...
|
|
@@ -84,7 +84,9 @@ class HasManyIdents(GenericHandler):
|
|
|
84
84
|
ident_aliases: ClassVar[dict[str, str] | None]
|
|
85
85
|
ident: str # type: ignore[misc]
|
|
86
86
|
@classmethod
|
|
87
|
-
def using(
|
|
87
|
+
def using( # type: ignore[override]
|
|
88
|
+
cls, default_ident: Incomplete | None = None, ident: Incomplete | None = None, **kwds
|
|
89
|
+
): ...
|
|
88
90
|
def __init__(self, ident: Incomplete | None = None, **kwds) -> None: ...
|
|
89
91
|
|
|
90
92
|
class HasSalt(GenericHandler):
|
|
@@ -95,7 +97,9 @@ class HasSalt(GenericHandler):
|
|
|
95
97
|
default_salt_chars: ClassVar[str | None]
|
|
96
98
|
salt: str | bytes | None
|
|
97
99
|
@classmethod
|
|
98
|
-
def using(
|
|
100
|
+
def using( # type: ignore[override]
|
|
101
|
+
cls, default_salt_size: int | None = None, salt_size: int | None = None, salt: str | bytes | None = None, **kwds
|
|
102
|
+
): ...
|
|
99
103
|
def __init__(self, salt: str | bytes | None = None, **kwds) -> None: ...
|
|
100
104
|
@classmethod
|
|
101
105
|
def bitsize(cls, salt_size: int | None = None, **kwds): ...
|
|
@@ -98,7 +98,7 @@ class Context:
|
|
|
98
98
|
def __exit__(
|
|
99
99
|
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
100
100
|
) -> None: ...
|
|
101
|
-
def push_alias(self) -> Generator[None
|
|
101
|
+
def push_alias(self) -> Generator[None]: ...
|
|
102
102
|
def sql(self, obj): ...
|
|
103
103
|
def literal(self, keyword): ...
|
|
104
104
|
def value(self, value, converter: Incomplete | None = ..., add_param: bool = ...): ...
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections.abc import Callable
|
|
2
|
-
from typing import IO, Any, Generic, SupportsIndex, TypeVar, overload
|
|
2
|
+
from typing import IO, Any, Generic, Literal, SupportsIndex, TypeVar, overload
|
|
3
3
|
|
|
4
4
|
_TB = TypeVar("_TB", bound=_BaseEntry)
|
|
5
5
|
_TP = TypeVar("_TP", bound=POFile)
|
|
@@ -38,7 +38,9 @@ class _BaseFile(list[_TB]):
|
|
|
38
38
|
def insert(self, index: SupportsIndex, entry: _TB) -> None: ...
|
|
39
39
|
def metadata_as_entry(self) -> POEntry: ...
|
|
40
40
|
def save(self, fpath: str | None = ..., repr_method: str = ..., newline: str | None = ...) -> None: ...
|
|
41
|
-
def find(
|
|
41
|
+
def find(
|
|
42
|
+
self, st: str, by: str = ..., include_obsolete_entries: bool = ..., msgctxt: str | Literal[False] = ...
|
|
43
|
+
) -> _TB | None: ...
|
|
42
44
|
def ordered_metadata(self) -> list[tuple[str, str]]: ...
|
|
43
45
|
def to_binary(self) -> bytes: ...
|
|
44
46
|
|
|
@@ -217,7 +217,7 @@ class ConnectionInfo:
|
|
|
217
217
|
# [1]: https://www.psycopg.org/docs/extensions.html#psycopg2.extensions.ConnectionInfo
|
|
218
218
|
# [2]: https://github.com/psycopg/psycopg2/blob/1d3a89a0bba621dc1cc9b32db6d241bd2da85ad1/psycopg/conninfo_type.c#L52 and below
|
|
219
219
|
# [3]: https://www.postgresql.org/docs/current/libpq-status.html
|
|
220
|
-
# [4]: https://github.com/postgres/postgres/blob/b39838889e76274b107935fa8e8951baf0e8b31b/src/interfaces/libpq/fe-connect.c#L6754 and below
|
|
220
|
+
# [4]: https://github.com/postgres/postgres/blob/b39838889e76274b107935fa8e8951baf0e8b31b/src/interfaces/libpq/fe-connect.c#L6754 and below # noqa: E501
|
|
221
221
|
@property
|
|
222
222
|
def backend_pid(self) -> int: ...
|
|
223
223
|
@property
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ast
|
|
2
2
|
import sys
|
|
3
|
-
from collections.abc import Callable, Iterable, Iterator
|
|
3
|
+
from collections.abc import Callable, Generator, Iterable, Iterator
|
|
4
4
|
from contextlib import contextmanager
|
|
5
5
|
from re import Pattern
|
|
6
6
|
from typing import Any, ClassVar, Literal, TypeVar, overload
|
|
@@ -203,7 +203,7 @@ class Checker:
|
|
|
203
203
|
@property
|
|
204
204
|
def scope(self) -> Scope: ...
|
|
205
205
|
@contextmanager
|
|
206
|
-
def in_scope(self, cls: Callable[[], Scope]) ->
|
|
206
|
+
def in_scope(self, cls: Callable[[], Scope]) -> Generator[None]: ...
|
|
207
207
|
def checkDeadScopes(self) -> None: ...
|
|
208
208
|
def report(self, messageClass: Callable[_P, Message], *args: _P.args, **kwargs: _P.kwargs) -> None: ...
|
|
209
209
|
def getParent(self, node: ast.AST) -> ast.AST: ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import contextlib
|
|
2
2
|
import types
|
|
3
3
|
from _typeshed import StrOrBytesPath, StrPath
|
|
4
|
-
from collections.abc import
|
|
4
|
+
from collections.abc import Generator
|
|
5
5
|
from typing import Generic, TypeVar
|
|
6
6
|
from typing_extensions import TypeAlias
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ def to_bytes(s: _CDataBase | StrOrBytesPath | None, encoding: str = "utf-8", err
|
|
|
12
12
|
def to_str(s: StrOrBytesPath) -> str: ...
|
|
13
13
|
def ptr_to_bytes(ptr_cdata: _CDataBase) -> bytes: ...
|
|
14
14
|
@contextlib.contextmanager
|
|
15
|
-
def new_git_strarray() ->
|
|
15
|
+
def new_git_strarray() -> Generator[_GitStrArray]: ...
|
|
16
16
|
def strarray_to_strings(arr: _GitStrArray) -> list[str]: ...
|
|
17
17
|
|
|
18
18
|
# Actual type: _cffi_backend.__CDataOwn <cdata 'struct git_strarray *'>
|
|
@@ -14,6 +14,7 @@ is_py39: Final[bool]
|
|
|
14
14
|
is_py310: Final[bool]
|
|
15
15
|
is_py311: Final[bool]
|
|
16
16
|
is_py312: Final[bool]
|
|
17
|
+
is_py313: Final[bool]
|
|
17
18
|
is_win: Final[bool]
|
|
18
19
|
is_win_10: Final[bool]
|
|
19
20
|
is_win_11: Final[bool]
|
|
@@ -31,6 +32,7 @@ is_musl: Final[bool]
|
|
|
31
32
|
is_macos_11_compat: Final[bool]
|
|
32
33
|
is_macos_11_native: Final[bool]
|
|
33
34
|
is_macos_11: Final[bool]
|
|
35
|
+
is_nogil: Final[bool]
|
|
34
36
|
PYDYLIB_NAMES: Final[set[str]]
|
|
35
37
|
base_prefix: Final[str]
|
|
36
38
|
is_venv: Final[bool]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import contextlib
|
|
2
2
|
import enum
|
|
3
3
|
import sys
|
|
4
|
-
from collections.abc import Callable, Iterable, Iterator
|
|
4
|
+
from collections.abc import Callable, Generator, Iterable, Iterator
|
|
5
5
|
from typing import Any, ClassVar
|
|
6
6
|
from typing_extensions import Self
|
|
7
7
|
|
|
@@ -108,7 +108,7 @@ class Controller:
|
|
|
108
108
|
def tap(self, key: str | Key | KeyCode) -> None: ...
|
|
109
109
|
def touch(self, key: str | Key | KeyCode, is_press: bool) -> None: ...
|
|
110
110
|
@contextlib.contextmanager
|
|
111
|
-
def pressed(self, *args: str | Key | KeyCode) ->
|
|
111
|
+
def pressed(self, *args: str | Key | KeyCode) -> Generator[None]: ...
|
|
112
112
|
def type(self, string: str) -> None: ...
|
|
113
113
|
@property
|
|
114
114
|
def modifiers(self) -> contextlib.AbstractContextManager[Iterator[set[Key]]]: ...
|
|
@@ -485,7 +485,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
485
485
|
def slowlog_reset(self) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
486
486
|
def time(self) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
487
487
|
def append(self, key, value) -> Pipeline[_StrType]: ...
|
|
488
|
-
def bitcount(
|
|
488
|
+
def bitcount( # type: ignore[override]
|
|
489
|
+
self, key: _Key, start: int | None = None, end: int | None = None, mode: str | None = None
|
|
490
|
+
) -> Pipeline[_StrType]: ...
|
|
489
491
|
def bitop(self, operation, dest, *keys) -> Pipeline[_StrType]: ...
|
|
490
492
|
def bitpos(self, key, bit, start=None, end=None, mode: str | None = None) -> Pipeline[_StrType]: ...
|
|
491
493
|
def decr(self, name, amount=1) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
@@ -494,7 +496,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
494
496
|
def dump(self, name) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
495
497
|
def exists(self, *names: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
496
498
|
def __contains__(self, *names: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
497
|
-
def expire(
|
|
499
|
+
def expire( # type: ignore[override]
|
|
500
|
+
self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
|
|
501
|
+
) -> Pipeline[_StrType]: ...
|
|
498
502
|
def expireat(
|
|
499
503
|
self, name, when, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
|
|
500
504
|
) -> Pipeline[_StrType]: ...
|
|
@@ -512,8 +516,12 @@ class Pipeline(Redis[_StrType]):
|
|
|
512
516
|
def msetnx(self, mapping: Mapping[_Key, _Value]) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
513
517
|
def move(self, name: _Key, db: int) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
514
518
|
def persist(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
515
|
-
def pexpire(
|
|
516
|
-
|
|
519
|
+
def pexpire( # type: ignore[override]
|
|
520
|
+
self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
|
|
521
|
+
) -> Pipeline[_StrType]: ...
|
|
522
|
+
def pexpireat( # type: ignore[override]
|
|
523
|
+
self, name: _Key, when: int | datetime, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
|
|
524
|
+
) -> Pipeline[_StrType]: ...
|
|
517
525
|
def psetex(self, name, time_ms, value) -> Pipeline[_StrType]: ...
|
|
518
526
|
def pttl(self, name) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
519
527
|
def randomkey(self) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
@@ -598,7 +606,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
598
606
|
store: _Key | None = None,
|
|
599
607
|
groups: bool = False,
|
|
600
608
|
) -> Pipeline[_StrType]: ...
|
|
601
|
-
def scan(
|
|
609
|
+
def scan( # type: ignore[override]
|
|
610
|
+
self, cursor: int = 0, match: _Key | None = None, count: int | None = None, _type: str | None = None
|
|
611
|
+
) -> Pipeline[_StrType]: ...
|
|
602
612
|
def scan_iter(self, match: _Key | None = None, count: int | None = None, _type: str | None = None) -> Iterator[Any]: ... # type: ignore[override]
|
|
603
613
|
def sscan(self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
604
614
|
def sscan_iter(self, name: _Key, match: _Key | None = None, count: int | None = None) -> Iterator[Any]: ...
|
|
@@ -680,7 +690,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
680
690
|
def zcard(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
681
691
|
def zcount(self, name: _Key, min: _Value, max: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
682
692
|
def zincrby(self, name: _Key, amount: float, value: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
683
|
-
def zinterstore(
|
|
693
|
+
def zinterstore( # type: ignore[override]
|
|
694
|
+
self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None
|
|
695
|
+
) -> Pipeline[_StrType]: ...
|
|
684
696
|
def zlexcount(self, name: _Key, min: _Value, max: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
685
697
|
def zpopmax(self, name: _Key, count: int | None = None) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
686
698
|
def zpopmin(self, name: _Key, count: int | None = None) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
@@ -699,7 +711,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
699
711
|
offset: int | None = None,
|
|
700
712
|
num: int | None = None,
|
|
701
713
|
) -> Pipeline[_StrType]: ...
|
|
702
|
-
def zrangebylex(
|
|
714
|
+
def zrangebylex( # type: ignore[override]
|
|
715
|
+
self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None
|
|
716
|
+
) -> Pipeline[_StrType]: ...
|
|
703
717
|
def zrangebyscore( # type: ignore[override]
|
|
704
718
|
self,
|
|
705
719
|
name: _Key,
|
|
@@ -733,7 +747,9 @@ class Pipeline(Redis[_StrType]):
|
|
|
733
747
|
) -> Pipeline[_StrType]: ...
|
|
734
748
|
def zrevrank(self, name: _Key, value: _Value, withscore: bool = False) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
735
749
|
def zscore(self, name: _Key, value: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
736
|
-
def zunionstore(
|
|
750
|
+
def zunionstore( # type: ignore[override]
|
|
751
|
+
self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None
|
|
752
|
+
) -> Pipeline[_StrType]: ...
|
|
737
753
|
def pfadd(self, name: _Key, *values: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
738
754
|
def pfcount(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
739
755
|
def pfmerge(self, dest: _Key, *sources: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
|
@@ -264,4 +264,10 @@ class BaseDocTemplate:
|
|
|
264
264
|
|
|
265
265
|
class SimpleDocTemplate(BaseDocTemplate):
|
|
266
266
|
def handle_pageBegin(self) -> None: ...
|
|
267
|
-
def build(
|
|
267
|
+
def build( # type: ignore[override]
|
|
268
|
+
self,
|
|
269
|
+
flowables: list[Flowable],
|
|
270
|
+
onFirstPage: _PageCallback = ...,
|
|
271
|
+
onLaterPages: _PageCallback = ...,
|
|
272
|
+
canvasmaker: _CanvasMaker = ...,
|
|
273
|
+
) -> None: ...
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
version = "0.13.2"
|
|
2
2
|
# Requires a version of numpy and matplotlib with a `py.typed` file
|
|
3
|
-
|
|
3
|
+
# see https://github.com/python/typeshed/issues/12551
|
|
4
|
+
# on why we need the upper bound for numpy
|
|
5
|
+
requires = ["matplotlib>=3.8", "numpy>=1.20,<2.1.0", "pandas-stubs"]
|
|
4
6
|
# matplotlib>=3.8 requires Python >=3.9
|
|
5
7
|
requires_python = ">=3.9"
|
|
6
8
|
upstream_repository = "https://github.com/mwaskom/seaborn"
|
|
@@ -46,7 +46,7 @@ class PairSpec(TypedDict, total=False):
|
|
|
46
46
|
wrap: int | None
|
|
47
47
|
|
|
48
48
|
@contextmanager
|
|
49
|
-
def theme_context(params: dict[str, Any]) -> Generator[None
|
|
49
|
+
def theme_context(params: dict[str, Any]) -> Generator[None]: ...
|
|
50
50
|
def build_plot_signature(cls: _ClsT) -> _ClsT: ... # -> _ClsT & "__signature__ protocol"
|
|
51
51
|
|
|
52
52
|
class ThemeConfig(mpl.RcParams):
|
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
from _typeshed import Incomplete, StrPath
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from collections.abc import Iterable, Mapping, Sequence
|
|
4
|
-
from typing import Any, TypeVar, overload
|
|
4
|
+
from typing import Any, Literal, TypeVar, overload
|
|
5
5
|
|
|
6
6
|
from ._distutils.cmd import Command as _Command
|
|
7
|
+
from .command.alias import alias
|
|
8
|
+
from .command.bdist_egg import bdist_egg
|
|
9
|
+
from .command.bdist_rpm import bdist_rpm
|
|
10
|
+
from .command.bdist_wheel import bdist_wheel
|
|
11
|
+
from .command.build import build
|
|
12
|
+
from .command.build_clib import build_clib
|
|
13
|
+
from .command.build_ext import build_ext
|
|
14
|
+
from .command.build_py import build_py
|
|
15
|
+
from .command.develop import develop
|
|
16
|
+
from .command.dist_info import dist_info
|
|
17
|
+
from .command.easy_install import easy_install
|
|
18
|
+
from .command.editable_wheel import editable_wheel
|
|
19
|
+
from .command.egg_info import egg_info
|
|
20
|
+
from .command.install import install
|
|
21
|
+
from .command.install_egg_info import install_egg_info
|
|
22
|
+
from .command.install_lib import install_lib
|
|
23
|
+
from .command.install_scripts import install_scripts
|
|
24
|
+
from .command.register import register
|
|
25
|
+
from .command.rotate import rotate
|
|
26
|
+
from .command.saveopts import saveopts
|
|
27
|
+
from .command.sdist import sdist
|
|
28
|
+
from .command.setopt import setopt
|
|
29
|
+
from .command.upload import upload
|
|
30
|
+
from .command.upload_docs import upload_docs
|
|
7
31
|
from .depends import Require as Require
|
|
8
32
|
from .dist import Distribution as Distribution
|
|
9
33
|
from .extension import Extension as Extension
|
|
10
34
|
from .warnings import SetuptoolsDeprecationWarning as SetuptoolsDeprecationWarning
|
|
11
35
|
|
|
12
|
-
_CommandT = TypeVar("_CommandT", bound=
|
|
36
|
+
_CommandT = TypeVar("_CommandT", bound=Command)
|
|
13
37
|
|
|
14
38
|
__all__ = [
|
|
15
39
|
"setup",
|
|
@@ -79,8 +103,116 @@ class Command(_Command):
|
|
|
79
103
|
# Any: Dynamic command subclass attributes
|
|
80
104
|
def __init__(self, dist: Distribution, **kw: Any) -> None: ...
|
|
81
105
|
def ensure_string_list(self, option: str) -> None: ...
|
|
82
|
-
|
|
83
|
-
|
|
106
|
+
# Note: Commands that setuptools doesn't re-expose are considered deprecated (they must be imported from distutils directly)
|
|
107
|
+
# So we're not listing them here. This list comes directly from the setuptools/command folder. Minus the test command.
|
|
108
|
+
@overload # type: ignore[override]
|
|
109
|
+
def get_finalized_command(self, command: Literal["alias"], create: bool | Literal[0, 1] = 1) -> alias: ...
|
|
110
|
+
@overload
|
|
111
|
+
def get_finalized_command(self, command: Literal["bdist_egg"], create: bool | Literal[0, 1] = 1) -> bdist_egg: ...
|
|
112
|
+
@overload
|
|
113
|
+
def get_finalized_command(self, command: Literal["bdist_rpm"], create: bool | Literal[0, 1] = 1) -> bdist_rpm: ... # type: ignore[overload-overlap]
|
|
114
|
+
@overload
|
|
115
|
+
def get_finalized_command(self, command: Literal["bdist_wheel"], create: bool | Literal[0, 1] = 1) -> bdist_wheel: ...
|
|
116
|
+
@overload
|
|
117
|
+
def get_finalized_command(self, command: Literal["build"], create: bool | Literal[0, 1] = 1) -> build: ... # type: ignore[overload-overlap]
|
|
118
|
+
@overload
|
|
119
|
+
def get_finalized_command(self, command: Literal["build_clib"], create: bool | Literal[0, 1] = 1) -> build_clib: ... # type: ignore[overload-overlap]
|
|
120
|
+
@overload
|
|
121
|
+
def get_finalized_command(self, command: Literal["build_ext"], create: bool | Literal[0, 1] = 1) -> build_ext: ... # type: ignore[overload-overlap]
|
|
122
|
+
@overload
|
|
123
|
+
def get_finalized_command(self, command: Literal["build_py"], create: bool | Literal[0, 1] = 1) -> build_py: ... # type: ignore[overload-overlap]
|
|
124
|
+
@overload
|
|
125
|
+
def get_finalized_command(self, command: Literal["develop"], create: bool | Literal[0, 1] = 1) -> develop: ...
|
|
126
|
+
@overload
|
|
127
|
+
def get_finalized_command(self, command: Literal["dist_info"], create: bool | Literal[0, 1] = 1) -> dist_info: ... # type: ignore[overload-overlap]
|
|
128
|
+
@overload
|
|
129
|
+
def get_finalized_command(self, command: Literal["easy_install"], create: bool | Literal[0, 1] = 1) -> easy_install: ...
|
|
130
|
+
@overload
|
|
131
|
+
def get_finalized_command(self, command: Literal["editable_wheel"], create: bool | Literal[0, 1] = 1) -> editable_wheel: ...
|
|
132
|
+
@overload
|
|
133
|
+
def get_finalized_command(self, command: Literal["egg_info"], create: bool | Literal[0, 1] = 1) -> egg_info: ...
|
|
134
|
+
@overload
|
|
135
|
+
def get_finalized_command(self, command: Literal["install"], create: bool | Literal[0, 1] = 1) -> install: ... # type: ignore[overload-overlap]
|
|
136
|
+
@overload
|
|
137
|
+
def get_finalized_command(
|
|
138
|
+
self, command: Literal["install_egg_info"], create: bool | Literal[0, 1] = 1
|
|
139
|
+
) -> install_egg_info: ...
|
|
140
|
+
@overload
|
|
141
|
+
def get_finalized_command(self, command: Literal["install_lib"], create: bool | Literal[0, 1] = 1) -> install_lib: ... # type: ignore[overload-overlap]
|
|
142
|
+
@overload
|
|
143
|
+
def get_finalized_command(self, command: Literal["install_scripts"], create: bool | Literal[0, 1] = 1) -> install_scripts: ... # type: ignore[overload-overlap]
|
|
144
|
+
@overload
|
|
145
|
+
def get_finalized_command(self, command: Literal["register"], create: bool | Literal[0, 1] = 1) -> register: ... # type: ignore[overload-overlap]
|
|
146
|
+
@overload
|
|
147
|
+
def get_finalized_command(self, command: Literal["rotate"], create: bool | Literal[0, 1] = 1) -> rotate: ...
|
|
148
|
+
@overload
|
|
149
|
+
def get_finalized_command(self, command: Literal["saveopts"], create: bool | Literal[0, 1] = 1) -> saveopts: ...
|
|
150
|
+
@overload
|
|
151
|
+
def get_finalized_command(self, command: Literal["sdist"], create: bool | Literal[0, 1] = 1) -> sdist: ... # type: ignore[overload-overlap]
|
|
152
|
+
@overload
|
|
153
|
+
def get_finalized_command(self, command: Literal["setopt"], create: bool | Literal[0, 1] = 1) -> setopt: ...
|
|
154
|
+
@overload
|
|
155
|
+
def get_finalized_command(self, command: Literal["upload"], create: bool | Literal[0, 1] = 1) -> upload: ... # type: ignore[overload-overlap]
|
|
156
|
+
@overload
|
|
157
|
+
def get_finalized_command(self, command: Literal["upload_docs"], create: bool | Literal[0, 1] = 1) -> upload_docs: ... # type: ignore[overload-overlap]
|
|
158
|
+
@overload
|
|
159
|
+
def get_finalized_command(self, command: str, create: bool | Literal[0, 1] = 1) -> Command: ...
|
|
160
|
+
@overload # type: ignore[override] # Extra **kw param
|
|
161
|
+
def reinitialize_command(self, command: Literal["alias"], reinit_subcommands: bool = False, **kw) -> alias: ...
|
|
162
|
+
@overload
|
|
163
|
+
def reinitialize_command(self, command: Literal["bdist_egg"], reinit_subcommands: bool = False, **kw) -> bdist_egg: ...
|
|
164
|
+
@overload
|
|
165
|
+
def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_subcommands: bool = False, **kw) -> bdist_rpm: ...
|
|
166
|
+
@overload
|
|
167
|
+
def reinitialize_command(self, command: Literal["bdist_wheel"], reinit_subcommands: bool = False, **kw) -> bdist_wheel: ...
|
|
168
|
+
@overload
|
|
169
|
+
def reinitialize_command(self, command: Literal["build"], reinit_subcommands: bool = False, **kw) -> build: ...
|
|
170
|
+
@overload
|
|
171
|
+
def reinitialize_command(self, command: Literal["build_clib"], reinit_subcommands: bool = False, **kw) -> build_clib: ...
|
|
172
|
+
@overload
|
|
173
|
+
def reinitialize_command(self, command: Literal["build_ext"], reinit_subcommands: bool = False, **kw) -> build_ext: ...
|
|
174
|
+
@overload
|
|
175
|
+
def reinitialize_command(self, command: Literal["build_py"], reinit_subcommands: bool = False, **kw) -> build_py: ...
|
|
176
|
+
@overload
|
|
177
|
+
def reinitialize_command(self, command: Literal["develop"], reinit_subcommands: bool = False, **kw) -> develop: ...
|
|
178
|
+
@overload
|
|
179
|
+
def reinitialize_command(self, command: Literal["dist_info"], reinit_subcommands: bool = False, **kw) -> dist_info: ...
|
|
180
|
+
@overload
|
|
181
|
+
def reinitialize_command(self, command: Literal["easy_install"], reinit_subcommands: bool = False, **kw) -> easy_install: ...
|
|
182
|
+
@overload
|
|
183
|
+
def reinitialize_command(
|
|
184
|
+
self, command: Literal["editable_wheel"], reinit_subcommands: bool = False, **kw
|
|
185
|
+
) -> editable_wheel: ...
|
|
186
|
+
@overload
|
|
187
|
+
def reinitialize_command(self, command: Literal["egg_info"], reinit_subcommands: bool = False, **kw) -> egg_info: ...
|
|
188
|
+
@overload
|
|
189
|
+
def reinitialize_command(self, command: Literal["install"], reinit_subcommands: bool = False, **kw) -> install: ...
|
|
190
|
+
@overload
|
|
191
|
+
def reinitialize_command(
|
|
192
|
+
self, command: Literal["install_egg_info"], reinit_subcommands: bool = False, **kw
|
|
193
|
+
) -> install_egg_info: ...
|
|
194
|
+
@overload
|
|
195
|
+
def reinitialize_command(self, command: Literal["install_lib"], reinit_subcommands: bool = False, **kw) -> install_lib: ...
|
|
196
|
+
@overload
|
|
197
|
+
def reinitialize_command(
|
|
198
|
+
self, command: Literal["install_scripts"], reinit_subcommands: bool = False, **kw
|
|
199
|
+
) -> install_scripts: ...
|
|
200
|
+
@overload
|
|
201
|
+
def reinitialize_command(self, command: Literal["register"], reinit_subcommands: bool = False, **kw) -> register: ...
|
|
202
|
+
@overload
|
|
203
|
+
def reinitialize_command(self, command: Literal["rotate"], reinit_subcommands: bool = False, **kw) -> rotate: ...
|
|
204
|
+
@overload
|
|
205
|
+
def reinitialize_command(self, command: Literal["saveopts"], reinit_subcommands: bool = False, **kw) -> saveopts: ...
|
|
206
|
+
@overload
|
|
207
|
+
def reinitialize_command(self, command: Literal["sdist"], reinit_subcommands: bool = False, **kw) -> sdist: ...
|
|
208
|
+
@overload
|
|
209
|
+
def reinitialize_command(self, command: Literal["setopt"], reinit_subcommands: bool = False, **kw) -> setopt: ...
|
|
210
|
+
@overload
|
|
211
|
+
def reinitialize_command(self, command: Literal["upload"], reinit_subcommands: bool = False, **kw) -> upload: ...
|
|
212
|
+
@overload
|
|
213
|
+
def reinitialize_command(self, command: Literal["upload_docs"], reinit_subcommands: bool = False, **kw) -> upload_docs: ...
|
|
214
|
+
@overload
|
|
215
|
+
def reinitialize_command(self, command: str, reinit_subcommands: bool = False, **kw) -> Command: ...
|
|
84
216
|
@overload
|
|
85
217
|
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False, **kw) -> _CommandT: ...
|
|
86
218
|
@abstractmethod
|
|
@@ -31,6 +31,8 @@ class Command:
|
|
|
31
31
|
def ensure_dirname(self, option: str) -> None: ...
|
|
32
32
|
def get_command_name(self) -> str: ...
|
|
33
33
|
def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str, str]) -> None: ...
|
|
34
|
+
# NOTE: Because this is private setuptools implementation and we don't re-expose all commands here,
|
|
35
|
+
# we're not overloading each and every command possibility.
|
|
34
36
|
def get_finalized_command(self, command: str, create: bool = True) -> Command: ...
|
|
35
37
|
@overload
|
|
36
38
|
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
@@ -64,10 +64,6 @@ class Distribution:
|
|
|
64
64
|
def __init__(self, attrs: MutableMapping[str, Incomplete] | None = None) -> None: ...
|
|
65
65
|
def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
|
|
66
66
|
def parse_config_files(self, filenames: Iterable[str] | None = None) -> None: ...
|
|
67
|
-
@overload
|
|
68
|
-
def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
|
|
69
|
-
@overload
|
|
70
|
-
def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
|
|
71
67
|
global_options: ClassVar[_OptionsList]
|
|
72
68
|
common_usage: ClassVar[str]
|
|
73
69
|
display_options: ClassVar[_OptionsList]
|
|
@@ -109,6 +105,12 @@ class Distribution:
|
|
|
109
105
|
def print_commands(self) -> None: ...
|
|
110
106
|
def get_command_list(self): ...
|
|
111
107
|
def get_command_packages(self): ...
|
|
108
|
+
# NOTE: Because this is private setuptools implementation and we don't re-expose all commands here,
|
|
109
|
+
# we're not overloading each and every command possibility.
|
|
110
|
+
@overload
|
|
111
|
+
def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
|
|
112
|
+
@overload
|
|
113
|
+
def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
|
|
112
114
|
def get_command_class(self, command: str) -> type[Command]: ...
|
|
113
115
|
@overload
|
|
114
116
|
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
from typing import Literal, overload
|
|
1
|
+
from typing import Final, Literal, overload
|
|
2
2
|
from typing_extensions import deprecated
|
|
3
3
|
|
|
4
4
|
from setuptools._distutils.ccompiler import CCompiler
|
|
5
5
|
|
|
6
|
-
PREFIX: str
|
|
7
|
-
EXEC_PREFIX: str
|
|
6
|
+
PREFIX: Final[str]
|
|
7
|
+
EXEC_PREFIX: Final[str]
|
|
8
8
|
|
|
9
9
|
@overload
|
|
10
10
|
@deprecated("SO is deprecated, use EXT_SUFFIX. Support will be removed when this module is synchronized with stdlib Python 3.11")
|