basedpyright 1.18.3 → 1.18.4
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/README.md +3 -3
- 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/VERSIONS +2 -0
- package/dist/typeshed-fallback/stdlib/_ast.pyi +140 -1667
- package/dist/typeshed-fallback/stdlib/_csv.pyi +14 -3
- package/dist/typeshed-fallback/stdlib/_curses.pyi +857 -65
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +29 -820
- package/dist/typeshed-fallback/stdlib/_socket.pyi +4 -12
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +387 -0
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +406 -0
- package/dist/typeshed-fallback/stdlib/_weakref.pyi +2 -41
- package/dist/typeshed-fallback/stdlib/ast.pyi +1843 -172
- package/dist/typeshed-fallback/stdlib/builtins.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/cProfile.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/calendar.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +6 -8
- package/dist/typeshed-fallback/stdlib/csv.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/curses/__init__.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/curses/textpad.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/decimal.pyi +840 -2
- package/dist/typeshed-fallback/stdlib/email/_policybase.pyi +27 -18
- package/dist/typeshed-fallback/stdlib/email/feedparser.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/email/generator.pyi +46 -9
- package/dist/typeshed-fallback/stdlib/email/message.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/email/parser.pyi +6 -4
- package/dist/typeshed-fallback/stdlib/email/policy.pyi +28 -10
- package/dist/typeshed-fallback/stdlib/http/client.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/io.pyi +6 -22
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +27 -19
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/profile.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +1 -5
- package/dist/typeshed-fallback/stdlib/re.pyi +10 -1
- package/dist/typeshed-fallback/stdlib/socket.pyi +12 -4
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +739 -1
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +220 -884
- package/dist/typeshed-fallback/stdlib/sre_constants.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/ssl.pyi +40 -128
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +111 -6
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +127 -21
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/typing.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/weakref.pyi +49 -14
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/xmlrpc/server.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +41 -44
- package/dist/typeshed-fallback/stdlib/zoneinfo/_common.pyi +13 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/_tzpath.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/frontend.pyi +1 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi +15 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/readers/doctree.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/writers/__init__.pyi +21 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +4 -4
- package/dist/typeshed-fallback/stubs/greenlet/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +5 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +49 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +32 -6
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/caselessdict.pyi +2 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +25 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser_tools.pyi +7 -3
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +112 -72
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/__init__.pyi +8 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/provider.pyi +29 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/pytz.pyi +22 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +30 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/zoneinfo.pyi +33 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/tools.pyi +2 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/version.pyi +8 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/common.pyi +48 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwa.pyi +35 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwe.pyi +51 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +115 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jws.pyi +52 -0
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwt.pyi +78 -0
- package/dist/typeshed-fallback/stubs/m3u8/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/__init__.pyi +74 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +19 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/mixins.pyi +25 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/model.pyi +406 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/parser.pyi +14 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/protocol.pyi +41 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/version_matching.pyi +5 -0
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/version_matching_rules.pyi +24 -0
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/transport.pyi +2 -1
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pytz/pytz/__init__.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +1 -1
- package/dist/typeshed-fallback/stubs/qrcode/METADATA.toml +3 -2
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +18 -0
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPDF.pyi +2 -2
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +9 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +11 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +1 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/change_tz.pyi +4 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/ics_diff.pyi +0 -3
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +1 -1
- package/dist/typeshed-fallback/stubs/waitress/waitress/__init__.pyi +2 -2
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/Pillow/METADATA.toml +0 -8
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BdfFontFile.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BlpImagePlugin.pyi +0 -39
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BmpImagePlugin.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BufrStubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ContainerIO.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/CurImagePlugin.pyi +0 -6
- package/dist/typeshed-fallback/stubs/Pillow/PIL/DcxImagePlugin.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/DdsImagePlugin.pyi +0 -314
- package/dist/typeshed-fallback/stubs/Pillow/PIL/EpsImagePlugin.pyi +0 -34
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ExifTags.pyi +0 -347
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FitsImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FliImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FontFile.pyi +0 -16
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FpxImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FtexImagePlugin.pyi +0 -15
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GbrImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GdImageFile.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GifImagePlugin.pyi +0 -31
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GimpGradientFile.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GimpPaletteFile.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/GribStubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Hdf5StubImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IcnsImagePlugin.pyi +0 -36
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IcoImagePlugin.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImImagePlugin.pyi +0 -34
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi +0 -342
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageChops.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageCms.pyi +0 -84
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageColor.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageDraw.pyi +0 -155
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageDraw2.pyi +0 -37
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageEnhance.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFile.pyi +0 -89
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFilter.pyi +0 -136
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFont.pyi +0 -114
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageGrab.pyi +0 -36
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMath.pyi +0 -49
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMode.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageMorph.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageOps.pyi +0 -53
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImagePalette.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImagePath.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageQt.pyi +0 -26
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageSequence.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageShow.pyi +0 -58
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageStat.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageTk.pyi +0 -51
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageTransform.pyi +0 -21
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageWin.pyi +0 -38
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImtImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/IptcImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Jpeg2KImagePlugin.pyi +0 -23
- package/dist/typeshed-fallback/stubs/Pillow/PIL/JpegImagePlugin.pyi +0 -30
- package/dist/typeshed-fallback/stubs/Pillow/PIL/JpegPresets.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/McIdasImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MicImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MpegImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MpoImagePlugin.pyi +0 -15
- package/dist/typeshed-fallback/stubs/Pillow/PIL/MspImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PSDraw.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PaletteFile.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PalmImagePlugin.pyi +0 -5
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcdImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcfFontFile.pyi +0 -25
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PcxImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PdfParser.pyi +0 -167
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PixarImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PngImagePlugin.pyi +0 -115
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PpmImagePlugin.pyi +0 -17
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PsdImagePlugin.pyi +0 -17
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PyAccess.pyi +0 -69
- package/dist/typeshed-fallback/stubs/Pillow/PIL/QoiImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SgiImagePlugin.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SpiderImagePlugin.pyi +0 -28
- package/dist/typeshed-fallback/stubs/Pillow/PIL/SunImagePlugin.pyi +0 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TarIO.pyi +0 -12
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TgaImagePlugin.pyi +0 -12
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TiffImagePlugin.pyi +0 -295
- package/dist/typeshed-fallback/stubs/Pillow/PIL/TiffTags.pyi +0 -46
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WalImageFile.pyi +0 -14
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WebPImagePlugin.pyi +0 -18
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WmfImagePlugin.pyi +0 -19
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XVThumbImagePlugin.pyi +0 -9
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XbmImagePlugin.pyi +0 -10
- package/dist/typeshed-fallback/stubs/Pillow/PIL/XpmImagePlugin.pyi +0 -11
- package/dist/typeshed-fallback/stubs/Pillow/PIL/__init__.pyi +0 -3
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_binary.pyi +0 -13
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_imaging.pyi +0 -29
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_tkinter_finder.pyi +0 -2
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_version.pyi +0 -1
- package/dist/typeshed-fallback/stubs/Pillow/PIL/features.pyi +0 -23
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone_cache.pyi +0 -0
- /package/dist/typeshed-fallback/stubs/icalendar/icalendar/{windows_to_olson.pyi → timezone/windows_to_olson.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{Pillow/PIL/PdfImagePlugin.pyi → jwcrypto/jwcrypto/__init__.pyi} +0 -0
|
@@ -1760,6 +1760,11 @@ class str(Sequence[str]):
|
|
|
1760
1760
|
def __ge__(self, value: str, /) -> bool:
|
|
1761
1761
|
"""Return self>=value."""
|
|
1762
1762
|
...
|
|
1763
|
+
@overload
|
|
1764
|
+
def __getitem__(self: LiteralString, key: SupportsIndex | slice, /) -> LiteralString:
|
|
1765
|
+
"""Return self[key]."""
|
|
1766
|
+
...
|
|
1767
|
+
@overload
|
|
1763
1768
|
def __getitem__(self, key: SupportsIndex | slice, /) -> str:
|
|
1764
1769
|
"""Return self[key]."""
|
|
1765
1770
|
...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _lsprof
|
|
2
2
|
from _typeshed import StrOrBytesPath, Unused
|
|
3
|
-
from collections.abc import Callable
|
|
3
|
+
from collections.abc import Callable, Mapping
|
|
4
4
|
from types import CodeType
|
|
5
5
|
from typing import Any, TypeVar
|
|
6
6
|
from typing_extensions import ParamSpec, Self, TypeAlias
|
|
@@ -9,7 +9,7 @@ __all__ = ["run", "runctx", "Profile"]
|
|
|
9
9
|
|
|
10
10
|
def run(statement: str, filename: str | None = None, sort: str | int = -1) -> None: ...
|
|
11
11
|
def runctx(
|
|
12
|
-
statement: str, globals: dict[str, Any], locals:
|
|
12
|
+
statement: str, globals: dict[str, Any], locals: Mapping[str, Any], filename: str | None = None, sort: str | int = -1
|
|
13
13
|
) -> None: ...
|
|
14
14
|
|
|
15
15
|
_T = TypeVar("_T")
|
|
@@ -23,7 +23,7 @@ class Profile(_lsprof.Profiler):
|
|
|
23
23
|
def create_stats(self) -> None: ...
|
|
24
24
|
def snapshot_stats(self) -> None: ...
|
|
25
25
|
def run(self, cmd: str) -> Self: ...
|
|
26
|
-
def runctx(self, cmd: str, globals: dict[str, Any], locals:
|
|
26
|
+
def runctx(self, cmd: str, globals: dict[str, Any], locals: Mapping[str, Any]) -> Self: ...
|
|
27
27
|
def runcall(self, func: Callable[_P, _T], /, *args: _P.args, **kw: _P.kwargs) -> _T: ...
|
|
28
28
|
def __enter__(self) -> Self: ...
|
|
29
29
|
def __exit__(self, *exc_info: Unused) -> None: ...
|
|
@@ -79,9 +79,9 @@ class Calendar:
|
|
|
79
79
|
def monthdatescalendar(self, year: int, month: int) -> list[list[datetime.date]]: ...
|
|
80
80
|
def monthdays2calendar(self, year: int, month: int) -> list[list[tuple[int, int]]]: ...
|
|
81
81
|
def monthdayscalendar(self, year: int, month: int) -> list[list[int]]: ...
|
|
82
|
-
def yeardatescalendar(self, year: int, width: int = 3) -> list[list[
|
|
83
|
-
def yeardays2calendar(self, year: int, width: int = 3) -> list[list[tuple[int, int]]]: ...
|
|
84
|
-
def yeardayscalendar(self, year: int, width: int = 3) -> list[list[int]]: ...
|
|
82
|
+
def yeardatescalendar(self, year: int, width: int = 3) -> list[list[list[list[datetime.date]]]]: ...
|
|
83
|
+
def yeardays2calendar(self, year: int, width: int = 3) -> list[list[list[list[tuple[int, int]]]]]: ...
|
|
84
|
+
def yeardayscalendar(self, year: int, width: int = 3) -> list[list[list[list[int]]]]: ...
|
|
85
85
|
def itermonthdays3(self, year: int, month: int) -> Iterable[tuple[int, int, int]]: ...
|
|
86
86
|
def itermonthdays4(self, year: int, month: int) -> Iterable[tuple[int, int, int, int]]: ...
|
|
87
87
|
|
|
@@ -19,8 +19,9 @@ _global_shutdown: bool
|
|
|
19
19
|
|
|
20
20
|
class _ThreadWakeup:
|
|
21
21
|
_closed: bool
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
# Any: Unused send and recv methods
|
|
23
|
+
_reader: Connection[Any, Any]
|
|
24
|
+
_writer: Connection[Any, Any]
|
|
24
25
|
def close(self) -> None: ...
|
|
25
26
|
def wakeup(self) -> None: ...
|
|
26
27
|
def clear(self) -> None: ...
|
|
@@ -143,13 +143,15 @@ class _RedirectStream(AbstractContextManager[_T_io, None]):
|
|
|
143
143
|
class redirect_stdout(_RedirectStream[_T_io]): ...
|
|
144
144
|
class redirect_stderr(_RedirectStream[_T_io]): ...
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
# see #7961 for why we don't do that in the stub
|
|
148
|
-
class ExitStack(Generic[_ExitT_co], metaclass=abc.ABCMeta):
|
|
146
|
+
class _BaseExitStack(Generic[_ExitT_co]):
|
|
149
147
|
def enter_context(self, cm: AbstractContextManager[_T, _ExitT_co]) -> _T: ...
|
|
150
148
|
def push(self, exit: _CM_EF) -> _CM_EF: ...
|
|
151
149
|
def callback(self, callback: Callable[_P, _T], /, *args: _P.args, **kwds: _P.kwargs) -> Callable[_P, _T]: ...
|
|
152
150
|
def pop_all(self) -> Self: ...
|
|
151
|
+
|
|
152
|
+
# In reality this is a subclass of `AbstractContextManager`;
|
|
153
|
+
# see #7961 for why we don't do that in the stub
|
|
154
|
+
class ExitStack(_BaseExitStack[_ExitT_co], metaclass=abc.ABCMeta):
|
|
153
155
|
def close(self) -> None: ...
|
|
154
156
|
def __enter__(self) -> Self: ...
|
|
155
157
|
def __exit__(
|
|
@@ -163,16 +165,12 @@ _ACM_EF = TypeVar("_ACM_EF", bound=AbstractAsyncContextManager[Any, Any] | _Exit
|
|
|
163
165
|
|
|
164
166
|
# In reality this is a subclass of `AbstractAsyncContextManager`;
|
|
165
167
|
# see #7961 for why we don't do that in the stub
|
|
166
|
-
class AsyncExitStack(
|
|
167
|
-
def enter_context(self, cm: AbstractContextManager[_T, _ExitT_co]) -> _T: ...
|
|
168
|
+
class AsyncExitStack(_BaseExitStack[_ExitT_co], metaclass=abc.ABCMeta):
|
|
168
169
|
async def enter_async_context(self, cm: AbstractAsyncContextManager[_T, _ExitT_co]) -> _T: ...
|
|
169
|
-
def push(self, exit: _CM_EF) -> _CM_EF: ...
|
|
170
170
|
def push_async_exit(self, exit: _ACM_EF) -> _ACM_EF: ...
|
|
171
|
-
def callback(self, callback: Callable[_P, _T], /, *args: _P.args, **kwds: _P.kwargs) -> Callable[_P, _T]: ...
|
|
172
171
|
def push_async_callback(
|
|
173
172
|
self, callback: Callable[_P, Awaitable[_T]], /, *args: _P.args, **kwds: _P.kwargs
|
|
174
173
|
) -> Callable[_P, Awaitable[_T]]: ...
|
|
175
|
-
def pop_all(self) -> Self: ...
|
|
176
174
|
async def aclose(self) -> None: ...
|
|
177
175
|
async def __aenter__(self) -> Self: ...
|
|
178
176
|
async def __aexit__(
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
|
|
3
|
-
# actually csv.Dialect is a different class to _csv.Dialect at runtime, but for typing purposes, they're identical
|
|
4
2
|
from _csv import (
|
|
5
3
|
QUOTE_ALL as QUOTE_ALL,
|
|
6
4
|
QUOTE_MINIMAL as QUOTE_MINIMAL,
|
|
7
5
|
QUOTE_NONE as QUOTE_NONE,
|
|
8
6
|
QUOTE_NONNUMERIC as QUOTE_NONNUMERIC,
|
|
9
|
-
Dialect as
|
|
7
|
+
Dialect as _Dialect,
|
|
10
8
|
Error as Error,
|
|
11
9
|
__version__ as __version__,
|
|
12
10
|
_DialectLike,
|
|
@@ -61,6 +59,9 @@ if sys.version_info < (3, 13):
|
|
|
61
59
|
|
|
62
60
|
_T = TypeVar("_T")
|
|
63
61
|
|
|
62
|
+
class Dialect(_Dialect):
|
|
63
|
+
def __init__(self) -> None: ...
|
|
64
|
+
|
|
64
65
|
class excel(Dialect): ...
|
|
65
66
|
class excel_tab(excel): ...
|
|
66
67
|
class unix_dialect(Dialect): ...
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from _curses import *
|
|
2
|
-
from _curses import
|
|
2
|
+
from _curses import window as window
|
|
3
3
|
from collections.abc import Callable
|
|
4
4
|
from typing import TypeVar
|
|
5
5
|
from typing_extensions import Concatenate, ParamSpec
|
|
@@ -19,4 +19,9 @@ COLS: int
|
|
|
19
19
|
COLORS: int
|
|
20
20
|
COLOR_PAIRS: int
|
|
21
21
|
|
|
22
|
-
def wrapper(func: Callable[Concatenate[
|
|
22
|
+
def wrapper(func: Callable[Concatenate[window, _P], _T], /, *arg: _P.args, **kwds: _P.kwargs) -> _T: ...
|
|
23
|
+
|
|
24
|
+
# typeshed used the name _CursesWindow for the underlying C class before
|
|
25
|
+
# it was mapped to the name 'window' in 3.8.
|
|
26
|
+
# Kept here as a legacy alias in case any third-party code is relying on it.
|
|
27
|
+
_CursesWindow = window
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _curses import
|
|
1
|
+
from _curses import window
|
|
2
2
|
|
|
3
3
|
version: str
|
|
4
4
|
|
|
@@ -9,17 +9,17 @@ class _Curses_Panel: # type is <class '_curses_panel.curses panel'> (note the s
|
|
|
9
9
|
def hidden(self) -> bool: ...
|
|
10
10
|
def hide(self) -> None: ...
|
|
11
11
|
def move(self, y: int, x: int) -> None: ...
|
|
12
|
-
def replace(self, win:
|
|
12
|
+
def replace(self, win: window) -> None: ...
|
|
13
13
|
def set_userptr(self, obj: object) -> None: ...
|
|
14
14
|
def show(self) -> None: ...
|
|
15
15
|
def top(self) -> None: ...
|
|
16
16
|
def userptr(self) -> object: ...
|
|
17
|
-
def window(self) ->
|
|
17
|
+
def window(self) -> window: ...
|
|
18
18
|
|
|
19
19
|
def bottom_panel() -> _Curses_Panel:
|
|
20
20
|
"""Return the bottom panel in the panel stack."""
|
|
21
21
|
...
|
|
22
|
-
def new_panel(win:
|
|
22
|
+
def new_panel(win: window, /) -> _Curses_Panel:
|
|
23
23
|
"""Return a panel object, associating it with the given window win."""
|
|
24
24
|
...
|
|
25
25
|
def top_panel() -> _Curses_Panel:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
from _curses import
|
|
1
|
+
from _curses import window
|
|
2
2
|
from collections.abc import Callable
|
|
3
3
|
|
|
4
|
-
def rectangle(win:
|
|
4
|
+
def rectangle(win: window, uly: int, ulx: int, lry: int, lrx: int) -> None: ...
|
|
5
5
|
|
|
6
6
|
class Textbox:
|
|
7
7
|
stripspaces: bool
|
|
8
|
-
def __init__(self, win:
|
|
8
|
+
def __init__(self, win: window, insert_mode: bool = False) -> None: ...
|
|
9
9
|
def edit(self, validate: Callable[[int], int] | None = None) -> str: ...
|
|
10
10
|
def do_command(self, ch: str | int) -> None: ...
|
|
11
11
|
def gather(self) -> str: ...
|