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
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from .ImageFile import ImageFile
|
|
5
|
-
|
|
6
|
-
MODES: Incomplete
|
|
7
|
-
|
|
8
|
-
class PsdImageFile(ImageFile):
|
|
9
|
-
format: ClassVar[Literal["PSD"]]
|
|
10
|
-
format_description: ClassVar[str]
|
|
11
|
-
tile: Incomplete
|
|
12
|
-
frame: Incomplete
|
|
13
|
-
fp: Incomplete
|
|
14
|
-
def seek(self, layer): ...
|
|
15
|
-
def tell(self): ...
|
|
16
|
-
im: Incomplete
|
|
17
|
-
def load_prepare(self) -> None: ...
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import Protocol
|
|
3
|
-
|
|
4
|
-
ffi: Incomplete
|
|
5
|
-
|
|
6
|
-
# Copy of PIL._imaging.PixelAccess.
|
|
7
|
-
# See https://github.com/python/typeshed/issues/11688.
|
|
8
|
-
class _PixelAccessor(Protocol):
|
|
9
|
-
def __setitem__(self, xy: tuple[int, int], color, /) -> None: ...
|
|
10
|
-
def __getitem__(self, xy: tuple[int, int], /): ...
|
|
11
|
-
def putpixel(self, xy: tuple[int, int], color, /) -> None: ...
|
|
12
|
-
def getpixel(self, xy: tuple[int, int], /): ...
|
|
13
|
-
|
|
14
|
-
class PyAccess(_PixelAccessor):
|
|
15
|
-
readonly: Incomplete
|
|
16
|
-
image8: Incomplete
|
|
17
|
-
image32: Incomplete
|
|
18
|
-
image: Incomplete
|
|
19
|
-
def __init__(self, img, readonly: bool = False) -> None: ...
|
|
20
|
-
def __setitem__(self, xy: tuple[int, int], color) -> None: ...
|
|
21
|
-
def __getitem__(self, xy: tuple[int, int]): ...
|
|
22
|
-
def putpixel(self, xy: tuple[int, int], color) -> None: ...
|
|
23
|
-
def getpixel(self, xy: tuple[int, int]): ...
|
|
24
|
-
def check_xy(self, xy: tuple[int, int]): ...
|
|
25
|
-
|
|
26
|
-
class _PyAccess32_2(PyAccess):
|
|
27
|
-
def get_pixel(self, x, y): ...
|
|
28
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
29
|
-
|
|
30
|
-
class _PyAccess32_3(PyAccess):
|
|
31
|
-
def get_pixel(self, x, y): ...
|
|
32
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
33
|
-
|
|
34
|
-
class _PyAccess32_4(PyAccess):
|
|
35
|
-
def get_pixel(self, x, y): ...
|
|
36
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
37
|
-
|
|
38
|
-
class _PyAccess8(PyAccess):
|
|
39
|
-
def get_pixel(self, x, y): ...
|
|
40
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
41
|
-
|
|
42
|
-
class _PyAccessI16_N(PyAccess):
|
|
43
|
-
def get_pixel(self, x, y): ...
|
|
44
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
45
|
-
|
|
46
|
-
class _PyAccessI16_L(PyAccess):
|
|
47
|
-
def get_pixel(self, x, y): ...
|
|
48
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
49
|
-
|
|
50
|
-
class _PyAccessI16_B(PyAccess):
|
|
51
|
-
def get_pixel(self, x, y): ...
|
|
52
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
53
|
-
|
|
54
|
-
class _PyAccessI32_N(PyAccess):
|
|
55
|
-
def get_pixel(self, x, y): ...
|
|
56
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
57
|
-
|
|
58
|
-
class _PyAccessI32_Swap(PyAccess):
|
|
59
|
-
def reverse(self, i): ...
|
|
60
|
-
def get_pixel(self, x, y): ...
|
|
61
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
62
|
-
|
|
63
|
-
class _PyAccessF(PyAccess):
|
|
64
|
-
def get_pixel(self, x, y): ...
|
|
65
|
-
def set_pixel(self, x, y, color) -> None: ...
|
|
66
|
-
|
|
67
|
-
mode_map: Incomplete
|
|
68
|
-
|
|
69
|
-
def new(img, readonly: bool = False): ...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from typing import ClassVar
|
|
2
|
-
|
|
3
|
-
from . import Image as Image, ImageFile as ImageFile
|
|
4
|
-
from ._binary import o8 as o8
|
|
5
|
-
|
|
6
|
-
class QoiImageFile(ImageFile.ImageFile):
|
|
7
|
-
format: ClassVar[str]
|
|
8
|
-
format_description: ClassVar[str]
|
|
9
|
-
|
|
10
|
-
class QoiDecoder(ImageFile.PyDecoder):
|
|
11
|
-
def decode(self, buffer): ...
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from .ImageFile import ImageFile, PyDecoder
|
|
5
|
-
|
|
6
|
-
MODES: Incomplete
|
|
7
|
-
|
|
8
|
-
class SgiImageFile(ImageFile):
|
|
9
|
-
format: ClassVar[Literal["SGI"]]
|
|
10
|
-
format_description: ClassVar[str]
|
|
11
|
-
|
|
12
|
-
class SGI16Decoder(PyDecoder):
|
|
13
|
-
def decode(self, buffer): ...
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from .ImageFile import ImageFile
|
|
5
|
-
|
|
6
|
-
def isInt(f: object) -> Literal[0, 1]: ...
|
|
7
|
-
|
|
8
|
-
iforms: Incomplete
|
|
9
|
-
|
|
10
|
-
def isSpiderHeader(t): ...
|
|
11
|
-
def isSpiderImage(filename): ...
|
|
12
|
-
|
|
13
|
-
class SpiderImageFile(ImageFile):
|
|
14
|
-
format: ClassVar[Literal["SPIDER"]]
|
|
15
|
-
format_description: ClassVar[str]
|
|
16
|
-
@property
|
|
17
|
-
def n_frames(self): ...
|
|
18
|
-
@property
|
|
19
|
-
def is_animated(self): ...
|
|
20
|
-
def tell(self): ...
|
|
21
|
-
stkoffset: Incomplete
|
|
22
|
-
fp: Incomplete
|
|
23
|
-
def seek(self, frame) -> None: ...
|
|
24
|
-
def convert2byte(self, depth: int = 255): ...
|
|
25
|
-
def tkPhotoImage(self): ...
|
|
26
|
-
|
|
27
|
-
def loadImageSeries(filelist: Incomplete | None = None): ...
|
|
28
|
-
def makeSpiderHeader(im): ...
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
from types import TracebackType
|
|
2
|
-
from typing_extensions import Self
|
|
3
|
-
|
|
4
|
-
from .ContainerIO import ContainerIO
|
|
5
|
-
|
|
6
|
-
class TarIO(ContainerIO[bytes]):
|
|
7
|
-
def __init__(self, tarfile: str, file: str) -> None: ...
|
|
8
|
-
def __enter__(self) -> Self: ...
|
|
9
|
-
def __exit__(
|
|
10
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
11
|
-
) -> None: ...
|
|
12
|
-
def close(self) -> None: ...
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from .ImageFile import ImageFile
|
|
5
|
-
|
|
6
|
-
MODES: Incomplete
|
|
7
|
-
|
|
8
|
-
class TgaImageFile(ImageFile):
|
|
9
|
-
format: ClassVar[Literal["TGA"]]
|
|
10
|
-
format_description: ClassVar[str]
|
|
11
|
-
|
|
12
|
-
SAVE: Incomplete
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from _typeshed import Incomplete
|
|
3
|
-
from collections.abc import Callable, MutableMapping
|
|
4
|
-
from fractions import Fraction, _ComparableNum
|
|
5
|
-
from numbers import Rational
|
|
6
|
-
from types import TracebackType
|
|
7
|
-
from typing import ClassVar, Final, Literal, SupportsIndex, overload
|
|
8
|
-
from typing_extensions import TypeAlias
|
|
9
|
-
|
|
10
|
-
from ._imaging import _PixelAccessor
|
|
11
|
-
from .ImageFile import ImageFile
|
|
12
|
-
|
|
13
|
-
_OpenInfo: TypeAlias = tuple[Literal[b"II", b"MM"], int, tuple[int, ...], int, tuple[int, ...], tuple[int, ...]]
|
|
14
|
-
|
|
15
|
-
# These are meant to be overridable
|
|
16
|
-
READ_LIBTIFF: bool
|
|
17
|
-
WRITE_LIBTIFF: bool
|
|
18
|
-
IFD_LEGACY_API: bool
|
|
19
|
-
STRIP_SIZE: int
|
|
20
|
-
|
|
21
|
-
II: Final = b"II"
|
|
22
|
-
MM: Final = b"MM"
|
|
23
|
-
IMAGEWIDTH: Final = 256
|
|
24
|
-
IMAGELENGTH: Final = 257
|
|
25
|
-
BITSPERSAMPLE: Final = 258
|
|
26
|
-
COMPRESSION: Final = 259
|
|
27
|
-
PHOTOMETRIC_INTERPRETATION: Final = 262
|
|
28
|
-
FILLORDER: Final = 266
|
|
29
|
-
IMAGEDESCRIPTION: Final = 270
|
|
30
|
-
STRIPOFFSETS: Final = 273
|
|
31
|
-
SAMPLESPERPIXEL: Final = 277
|
|
32
|
-
ROWSPERSTRIP: Final = 278
|
|
33
|
-
STRIPBYTECOUNTS: Final = 279
|
|
34
|
-
X_RESOLUTION: Final = 282
|
|
35
|
-
Y_RESOLUTION: Final = 283
|
|
36
|
-
PLANAR_CONFIGURATION: Final = 284
|
|
37
|
-
RESOLUTION_UNIT: Final = 296
|
|
38
|
-
TRANSFERFUNCTION: Final = 301
|
|
39
|
-
SOFTWARE: Final = 305
|
|
40
|
-
DATE_TIME: Final = 306
|
|
41
|
-
ARTIST: Final = 315
|
|
42
|
-
PREDICTOR: Final = 317
|
|
43
|
-
COLORMAP: Final = 320
|
|
44
|
-
TILEWIDTH: Final = 322
|
|
45
|
-
TILELENGTH: Final = 323
|
|
46
|
-
TILEOFFSETS: Final = 324
|
|
47
|
-
TILEBYTECOUNTS: Final = 325
|
|
48
|
-
SUBIFD: Final = 330
|
|
49
|
-
EXTRASAMPLES: Final = 338
|
|
50
|
-
SAMPLEFORMAT: Final = 339
|
|
51
|
-
JPEGTABLES: Final = 347
|
|
52
|
-
YCBCRSUBSAMPLING: Final = 530
|
|
53
|
-
REFERENCEBLACKWHITE: Final = 532
|
|
54
|
-
COPYRIGHT: Final = 33432
|
|
55
|
-
IPTC_NAA_CHUNK: Final = 33723
|
|
56
|
-
PHOTOSHOP_CHUNK: Final = 34377
|
|
57
|
-
ICCPROFILE: Final = 34675
|
|
58
|
-
EXIFIFD: Final = 34665
|
|
59
|
-
XMP: Final = 700
|
|
60
|
-
JPEGQUALITY: Final = 65537
|
|
61
|
-
IMAGEJ_META_DATA_BYTE_COUNTS: Final = 50838
|
|
62
|
-
IMAGEJ_META_DATA: Final = 50839
|
|
63
|
-
COMPRESSION_INFO: Final[dict[int, str]]
|
|
64
|
-
COMPRESSION_INFO_REV: Final[dict[str, int]]
|
|
65
|
-
OPEN_INFO: Final[dict[_OpenInfo, tuple[str, str]]]
|
|
66
|
-
MAX_SAMPLESPERPIXEL: Final = 6
|
|
67
|
-
PREFIXES: Final[list[bytes]]
|
|
68
|
-
|
|
69
|
-
class IFDRational(Rational):
|
|
70
|
-
def __init__(self, value, denominator: int = 1) -> None: ...
|
|
71
|
-
@property
|
|
72
|
-
def numerator(a): ...
|
|
73
|
-
@property
|
|
74
|
-
def denominator(a): ...
|
|
75
|
-
def limit_rational(self, max_denominator): ...
|
|
76
|
-
def __hash__(self) -> int: ...
|
|
77
|
-
def __eq__(self, other): ...
|
|
78
|
-
# The following methods are aliased from fractions.Fraction:
|
|
79
|
-
@overload
|
|
80
|
-
def __add__(a, b: int | Fraction) -> Fraction: ...
|
|
81
|
-
@overload
|
|
82
|
-
def __add__(a, b: float) -> float: ...
|
|
83
|
-
@overload
|
|
84
|
-
def __add__(a, b: complex) -> complex: ...
|
|
85
|
-
@overload
|
|
86
|
-
def __radd__(b, a: int | Fraction) -> Fraction: ...
|
|
87
|
-
@overload
|
|
88
|
-
def __radd__(b, a: float) -> float: ...
|
|
89
|
-
@overload
|
|
90
|
-
def __radd__(b, a: complex) -> complex: ...
|
|
91
|
-
@overload
|
|
92
|
-
def __sub__(a, b: int | Fraction) -> Fraction: ...
|
|
93
|
-
@overload
|
|
94
|
-
def __sub__(a, b: float) -> float: ...
|
|
95
|
-
@overload
|
|
96
|
-
def __sub__(a, b: complex) -> complex: ...
|
|
97
|
-
@overload
|
|
98
|
-
def __rsub__(b, a: int | Fraction) -> Fraction: ...
|
|
99
|
-
@overload
|
|
100
|
-
def __rsub__(b, a: float) -> float: ...
|
|
101
|
-
@overload
|
|
102
|
-
def __rsub__(b, a: complex) -> complex: ...
|
|
103
|
-
@overload
|
|
104
|
-
def __mul__(a, b: int | Fraction) -> Fraction: ...
|
|
105
|
-
@overload
|
|
106
|
-
def __mul__(a, b: float) -> float: ...
|
|
107
|
-
@overload
|
|
108
|
-
def __mul__(a, b: complex) -> complex: ...
|
|
109
|
-
@overload
|
|
110
|
-
def __rmul__(b, a: int | Fraction) -> Fraction: ...
|
|
111
|
-
@overload
|
|
112
|
-
def __rmul__(b, a: float) -> float: ...
|
|
113
|
-
@overload
|
|
114
|
-
def __rmul__(b, a: complex) -> complex: ...
|
|
115
|
-
@overload
|
|
116
|
-
def __truediv__(a, b: int | Fraction) -> Fraction: ...
|
|
117
|
-
@overload
|
|
118
|
-
def __truediv__(a, b: float) -> float: ...
|
|
119
|
-
@overload
|
|
120
|
-
def __truediv__(a, b: complex) -> complex: ...
|
|
121
|
-
@overload
|
|
122
|
-
def __rtruediv__(b, a: int | Fraction) -> Fraction: ...
|
|
123
|
-
@overload
|
|
124
|
-
def __rtruediv__(b, a: float) -> float: ...
|
|
125
|
-
@overload
|
|
126
|
-
def __rtruediv__(b, a: complex) -> complex: ...
|
|
127
|
-
@overload
|
|
128
|
-
def __floordiv__(a, b: int | Fraction) -> int: ...
|
|
129
|
-
@overload
|
|
130
|
-
def __floordiv__(a, b: float) -> float: ...
|
|
131
|
-
@overload
|
|
132
|
-
def __rfloordiv__(b, a: int | Fraction) -> int: ...
|
|
133
|
-
@overload
|
|
134
|
-
def __rfloordiv__(b, a: float) -> float: ...
|
|
135
|
-
@overload
|
|
136
|
-
def __mod__(a, b: int | Fraction) -> Fraction: ...
|
|
137
|
-
@overload
|
|
138
|
-
def __mod__(a, b: float) -> float: ...
|
|
139
|
-
@overload
|
|
140
|
-
def __rmod__(b, a: int | Fraction) -> Fraction: ...
|
|
141
|
-
@overload
|
|
142
|
-
def __rmod__(b, a: float) -> float: ...
|
|
143
|
-
@overload
|
|
144
|
-
def __pow__(a, b: int) -> Fraction: ...
|
|
145
|
-
@overload
|
|
146
|
-
def __pow__(a, b: float | Fraction) -> float: ...
|
|
147
|
-
@overload
|
|
148
|
-
def __pow__(a, b: complex) -> complex: ...
|
|
149
|
-
@overload
|
|
150
|
-
def __rpow__(b, a: float | Fraction) -> float: ...
|
|
151
|
-
@overload
|
|
152
|
-
def __rpow__(b, a: complex) -> complex: ...
|
|
153
|
-
def __pos__(a) -> Fraction: ...
|
|
154
|
-
def __neg__(a) -> Fraction: ...
|
|
155
|
-
def __abs__(a) -> Fraction: ...
|
|
156
|
-
def __trunc__(a) -> int: ...
|
|
157
|
-
def __lt__(a, b: _ComparableNum) -> bool: ...
|
|
158
|
-
def __gt__(a, b: _ComparableNum) -> bool: ...
|
|
159
|
-
def __le__(a, b: _ComparableNum) -> bool: ...
|
|
160
|
-
def __ge__(a, b: _ComparableNum) -> bool: ...
|
|
161
|
-
def __bool__(a) -> bool: ...
|
|
162
|
-
def __ceil__(a) -> int: ...
|
|
163
|
-
def __floor__(a) -> int: ...
|
|
164
|
-
@overload
|
|
165
|
-
def __round__(self, ndigits: None = None) -> int: ...
|
|
166
|
-
@overload
|
|
167
|
-
def __round__(self, ndigits: int) -> Fraction: ...
|
|
168
|
-
if sys.version_info >= (3, 11):
|
|
169
|
-
def __int__(a, _index: Callable[[SupportsIndex], int] = ...) -> int: ...
|
|
170
|
-
|
|
171
|
-
class ImageFileDirectory_v2(MutableMapping[int, Incomplete]):
|
|
172
|
-
group: int | None
|
|
173
|
-
tagtype: dict[int, int]
|
|
174
|
-
def __init__(
|
|
175
|
-
self, ifh: bytes = b"II*\x00\x00\x00\x00\x00", prefix: bytes | None = None, group: int | None = None
|
|
176
|
-
) -> None: ...
|
|
177
|
-
@property
|
|
178
|
-
def prefix(self) -> bytes: ...
|
|
179
|
-
@property
|
|
180
|
-
def offset(self) -> int | None: ...
|
|
181
|
-
@property
|
|
182
|
-
def legacy_api(self) -> bool: ...
|
|
183
|
-
def reset(self) -> None: ...
|
|
184
|
-
def named(self): ...
|
|
185
|
-
def __len__(self) -> int: ...
|
|
186
|
-
def __getitem__(self, tag): ...
|
|
187
|
-
def __contains__(self, tag): ...
|
|
188
|
-
def __setitem__(self, tag, value) -> None: ...
|
|
189
|
-
def __delitem__(self, tag) -> None: ...
|
|
190
|
-
def __iter__(self): ...
|
|
191
|
-
def load_byte(self, data, legacy_api: bool = True): ...
|
|
192
|
-
def write_byte(self, data): ...
|
|
193
|
-
def load_string(self, data, legacy_api: bool = True): ...
|
|
194
|
-
def write_string(self, value: int | str | bytes) -> bytes: ...
|
|
195
|
-
def load_rational(self, data, legacy_api: bool = True): ...
|
|
196
|
-
def write_rational(self, *values): ...
|
|
197
|
-
def load_undefined(self, data, legacy_api: bool = True): ...
|
|
198
|
-
def write_undefined(self, value): ...
|
|
199
|
-
def load_signed_rational(self, data, legacy_api: bool = True): ...
|
|
200
|
-
def write_signed_rational(self, *values): ...
|
|
201
|
-
def load(self, fp) -> None: ...
|
|
202
|
-
def tobytes(self, offset: int = 0): ...
|
|
203
|
-
def save(self, fp): ...
|
|
204
|
-
load_double: Incomplete
|
|
205
|
-
load_float: Incomplete
|
|
206
|
-
load_long: Incomplete
|
|
207
|
-
load_long8: Incomplete
|
|
208
|
-
load_short: Incomplete
|
|
209
|
-
load_signed_byte: Incomplete
|
|
210
|
-
load_signed_long: Incomplete
|
|
211
|
-
load_signed_short: Incomplete
|
|
212
|
-
write_double: Incomplete
|
|
213
|
-
write_float: Incomplete
|
|
214
|
-
write_long: Incomplete
|
|
215
|
-
write_long8: Incomplete
|
|
216
|
-
write_short: Incomplete
|
|
217
|
-
write_signed_byte: Incomplete
|
|
218
|
-
write_signed_long: Incomplete
|
|
219
|
-
write_signed_short: Incomplete
|
|
220
|
-
|
|
221
|
-
class ImageFileDirectory_v1(ImageFileDirectory_v2):
|
|
222
|
-
def __init__(self, *args, **kwargs) -> None: ...
|
|
223
|
-
@property
|
|
224
|
-
def tags(self): ...
|
|
225
|
-
@property
|
|
226
|
-
def tagdata(self): ...
|
|
227
|
-
tagtype: dict[int, int]
|
|
228
|
-
@classmethod
|
|
229
|
-
def from_v2(cls, original): ...
|
|
230
|
-
def to_v2(self): ...
|
|
231
|
-
def __contains__(self, tag): ...
|
|
232
|
-
def __len__(self) -> int: ...
|
|
233
|
-
def __iter__(self): ...
|
|
234
|
-
def __setitem__(self, tag, value) -> None: ...
|
|
235
|
-
def __getitem__(self, tag): ...
|
|
236
|
-
|
|
237
|
-
ImageFileDirectory = ImageFileDirectory_v1
|
|
238
|
-
|
|
239
|
-
class TiffImageFile(ImageFile):
|
|
240
|
-
format: ClassVar[Literal["TIFF", "MIC"]]
|
|
241
|
-
format_description: ClassVar[str]
|
|
242
|
-
tag_v2: Incomplete
|
|
243
|
-
tag: Incomplete
|
|
244
|
-
def __init__(self, fp: Incomplete | None = None, filename: Incomplete | None = None) -> None: ...
|
|
245
|
-
@property
|
|
246
|
-
def n_frames(self): ...
|
|
247
|
-
im: Incomplete
|
|
248
|
-
def seek(self, frame) -> None: ...
|
|
249
|
-
def tell(self): ...
|
|
250
|
-
def getxmp(self): ...
|
|
251
|
-
def get_photoshop_blocks(self): ...
|
|
252
|
-
def load(self) -> _PixelAccessor: ...
|
|
253
|
-
def load_end(self) -> None: ...
|
|
254
|
-
|
|
255
|
-
SAVE_INFO: Incomplete
|
|
256
|
-
|
|
257
|
-
class AppendingTiffWriter:
|
|
258
|
-
fieldSizes: Incomplete
|
|
259
|
-
Tags: Incomplete
|
|
260
|
-
f: Incomplete
|
|
261
|
-
close_fp: bool
|
|
262
|
-
name: Incomplete
|
|
263
|
-
beginning: Incomplete
|
|
264
|
-
def __init__(self, fn, new: bool = False) -> None: ...
|
|
265
|
-
whereToWriteNewIFDOffset: Incomplete
|
|
266
|
-
offsetOfNewPage: int
|
|
267
|
-
IIMM: Incomplete
|
|
268
|
-
isFirst: bool
|
|
269
|
-
def setup(self) -> None: ...
|
|
270
|
-
def finalize(self) -> None: ...
|
|
271
|
-
def newFrame(self) -> None: ...
|
|
272
|
-
def __enter__(self): ...
|
|
273
|
-
def __exit__(
|
|
274
|
-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
275
|
-
) -> Literal[False]: ...
|
|
276
|
-
def tell(self): ...
|
|
277
|
-
def seek(self, offset, whence=0): ...
|
|
278
|
-
def goToEnd(self) -> None: ...
|
|
279
|
-
endian: Incomplete
|
|
280
|
-
longFmt: Incomplete
|
|
281
|
-
shortFmt: Incomplete
|
|
282
|
-
tagFormat: Incomplete
|
|
283
|
-
def setEndian(self, endian) -> None: ...
|
|
284
|
-
def skipIFDs(self) -> None: ...
|
|
285
|
-
def write(self, data): ...
|
|
286
|
-
def readShort(self): ...
|
|
287
|
-
def readLong(self): ...
|
|
288
|
-
def rewriteLastShortToLong(self, value) -> None: ...
|
|
289
|
-
def rewriteLastShort(self, value) -> None: ...
|
|
290
|
-
def rewriteLastLong(self, value) -> None: ...
|
|
291
|
-
def writeShort(self, value) -> None: ...
|
|
292
|
-
def writeLong(self, value) -> None: ...
|
|
293
|
-
def close(self) -> None: ...
|
|
294
|
-
def fixIFD(self) -> None: ...
|
|
295
|
-
def fixOffsets(self, count, isShort: bool = False, isLong: bool = False) -> None: ...
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import Final, Literal, NamedTuple
|
|
3
|
-
from typing_extensions import TypeAlias
|
|
4
|
-
|
|
5
|
-
_TagType: TypeAlias = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16]
|
|
6
|
-
_TagTuple: TypeAlias = tuple[str, _TagType, int] | tuple[str, _TagInfo, int, dict[str, int]]
|
|
7
|
-
|
|
8
|
-
class _TagInfo(NamedTuple):
|
|
9
|
-
value: Incomplete
|
|
10
|
-
name: str
|
|
11
|
-
type: _TagType
|
|
12
|
-
length: int
|
|
13
|
-
enum: dict[str, int]
|
|
14
|
-
|
|
15
|
-
class TagInfo(_TagInfo):
|
|
16
|
-
def __new__(
|
|
17
|
-
cls,
|
|
18
|
-
value: Incomplete | None = None,
|
|
19
|
-
name: str = "unknown",
|
|
20
|
-
type: _TagType | None = None,
|
|
21
|
-
length: int | None = None,
|
|
22
|
-
enum: dict[str, int] | None = None,
|
|
23
|
-
): ...
|
|
24
|
-
def cvt_enum(self, value): ...
|
|
25
|
-
|
|
26
|
-
def lookup(tag: int, group: int | None = None) -> _TagInfo: ...
|
|
27
|
-
|
|
28
|
-
BYTE: Final = 1
|
|
29
|
-
ASCII: Final = 2
|
|
30
|
-
SHORT: Final = 3
|
|
31
|
-
LONG: Final = 4
|
|
32
|
-
RATIONAL: Final = 5
|
|
33
|
-
SIGNED_BYTE: Final = 6
|
|
34
|
-
UNDEFINED: Final = 7
|
|
35
|
-
SIGNED_SHORT: Final = 8
|
|
36
|
-
SIGNED_LONG: Final = 9
|
|
37
|
-
SIGNED_RATIONAL: Final = 10
|
|
38
|
-
FLOAT: Final = 11
|
|
39
|
-
DOUBLE: Final = 12
|
|
40
|
-
IFD: Final = 13
|
|
41
|
-
LONG8: Final = 16
|
|
42
|
-
TAGS_V2: dict[int, _TagTuple]
|
|
43
|
-
TAGS_V2_GROUPS: dict[int, dict[int, _TagTuple]]
|
|
44
|
-
TAGS: dict[int, str]
|
|
45
|
-
TYPES: dict[int, str]
|
|
46
|
-
LIBTIFF_CORE: set[int]
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from _typeshed import StrOrBytesPath
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from . import ImageFile
|
|
5
|
-
from ._imaging import _PixelAccessor
|
|
6
|
-
|
|
7
|
-
class WalImageFile(ImageFile.ImageFile):
|
|
8
|
-
format: ClassVar[Literal["WAL"]]
|
|
9
|
-
format_description: ClassVar[str]
|
|
10
|
-
def load(self) -> _PixelAccessor: ...
|
|
11
|
-
|
|
12
|
-
def open(filename: StrOrBytesPath) -> WalImageFile: ...
|
|
13
|
-
|
|
14
|
-
quake2palette: bytes
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from typing import ClassVar, Literal
|
|
2
|
-
from typing_extensions import TypeAlias
|
|
3
|
-
|
|
4
|
-
from ._imaging import _PixelAccessor
|
|
5
|
-
from .ImageFile import ImageFile
|
|
6
|
-
|
|
7
|
-
SUPPORTED: bool
|
|
8
|
-
_XMP_Tags: TypeAlias = dict[str, str | _XMP_Tags]
|
|
9
|
-
|
|
10
|
-
class WebPImageFile(ImageFile):
|
|
11
|
-
format: ClassVar[Literal["WEBP"]]
|
|
12
|
-
format_description: ClassVar[str]
|
|
13
|
-
|
|
14
|
-
def getxmp(self) -> _XMP_Tags: ...
|
|
15
|
-
def seek(self, frame: int) -> None: ...
|
|
16
|
-
def load(self) -> _PixelAccessor: ...
|
|
17
|
-
def load_seek(self, pos: int) -> None: ...
|
|
18
|
-
def tell(self) -> int: ...
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from _typeshed import Incomplete
|
|
3
|
-
from typing import ClassVar, Literal
|
|
4
|
-
|
|
5
|
-
from ._imaging import _PixelAccessor
|
|
6
|
-
from .ImageFile import StubImageFile
|
|
7
|
-
|
|
8
|
-
def register_handler(handler) -> None: ...
|
|
9
|
-
|
|
10
|
-
if sys.platform == "win32":
|
|
11
|
-
class WmfHandler:
|
|
12
|
-
bbox: Incomplete
|
|
13
|
-
def open(self, im) -> None: ...
|
|
14
|
-
def load(self, im): ...
|
|
15
|
-
|
|
16
|
-
class WmfStubImageFile(StubImageFile):
|
|
17
|
-
format: ClassVar[Literal["WMF"]]
|
|
18
|
-
format_description: ClassVar[str]
|
|
19
|
-
def load(self, dpi: Incomplete | None = None) -> _PixelAccessor: ...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import ClassVar, Literal
|
|
3
|
-
|
|
4
|
-
from .ImageFile import ImageFile
|
|
5
|
-
|
|
6
|
-
xpm_head: Incomplete
|
|
7
|
-
|
|
8
|
-
class XpmImageFile(ImageFile):
|
|
9
|
-
format: ClassVar[Literal["XPM"]]
|
|
10
|
-
format_description: ClassVar[str]
|
|
11
|
-
def load_read(self, bytes): ...
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
def i8(c: bytes) -> int: ...
|
|
2
|
-
def o8(i: int) -> bytes: ...
|
|
3
|
-
def i16le(c: bytes, o: int = 0) -> int: ...
|
|
4
|
-
def si16le(c: bytes, o: int = 0) -> int: ...
|
|
5
|
-
def si16be(c: bytes, o: int = 0) -> int: ...
|
|
6
|
-
def i32le(c: bytes, o: int = 0) -> int: ...
|
|
7
|
-
def si32le(c: bytes, o: int = 0) -> int: ...
|
|
8
|
-
def i16be(c: bytes, o: int = 0) -> int: ...
|
|
9
|
-
def i32be(c: bytes, o: int = 0) -> int: ...
|
|
10
|
-
def o16le(i: int) -> bytes: ...
|
|
11
|
-
def o32le(i: int) -> bytes: ...
|
|
12
|
-
def o16be(i: int) -> bytes: ...
|
|
13
|
-
def o32be(i: int) -> bytes: ...
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Sequence
|
|
3
|
-
from typing import Literal, Protocol
|
|
4
|
-
|
|
5
|
-
DEFAULT_STRATEGY: Literal[0]
|
|
6
|
-
FILTERED: Literal[1]
|
|
7
|
-
HUFFMAN_ONLY: Literal[2]
|
|
8
|
-
RLE: Literal[3]
|
|
9
|
-
FIXED: Literal[4]
|
|
10
|
-
|
|
11
|
-
class _PixelAccessor(Protocol): # noqa: Y046
|
|
12
|
-
# PIL has two concrete types for accessing an image's pixels by coordinate lookup:
|
|
13
|
-
# PixelAccess (written in C; not runtime-importable) and PyAccess (written in
|
|
14
|
-
# Python + cffi; is runtime-importable). PixelAccess came first. PyAccess was added
|
|
15
|
-
# in later to support PyPy, but otherwise is intended to expose the same interface
|
|
16
|
-
# PixelAccess.
|
|
17
|
-
#
|
|
18
|
-
# This protocol describes that interface.
|
|
19
|
-
# TODO: should the color args and getter return types be _Color?
|
|
20
|
-
def __setitem__(self, xy: tuple[int, int], color, /) -> None: ...
|
|
21
|
-
def __getitem__(self, xy: tuple[int, int], /): ...
|
|
22
|
-
def putpixel(self, xy: tuple[int, int], color, /) -> None: ...
|
|
23
|
-
def getpixel(self, xy: tuple[int, int], /): ...
|
|
24
|
-
|
|
25
|
-
class _Path:
|
|
26
|
-
def __getattr__(self, item: str) -> Incomplete: ...
|
|
27
|
-
|
|
28
|
-
def path(x: Sequence[tuple[float, float]] | Sequence[float], /) -> _Path: ...
|
|
29
|
-
def __getattr__(name: str, /) -> Incomplete: ...
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__: str
|