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,89 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete, Unused
|
|
2
|
-
from typing import NoReturn
|
|
3
|
-
from typing_extensions import Self
|
|
4
|
-
|
|
5
|
-
from ._imaging import _PixelAccessor
|
|
6
|
-
from .Image import Image
|
|
7
|
-
|
|
8
|
-
MAXBLOCK: int
|
|
9
|
-
SAFEBLOCK: Incomplete
|
|
10
|
-
LOAD_TRUNCATED_IMAGES: bool
|
|
11
|
-
ERRORS: Incomplete
|
|
12
|
-
|
|
13
|
-
def raise_oserror(error) -> NoReturn: ...
|
|
14
|
-
|
|
15
|
-
class ImageFile(Image):
|
|
16
|
-
custom_mimetype: Incomplete
|
|
17
|
-
tile: list[Incomplete] | None
|
|
18
|
-
readonly: int
|
|
19
|
-
decoderconfig: Incomplete
|
|
20
|
-
decodermaxblock: Incomplete
|
|
21
|
-
fp: Incomplete
|
|
22
|
-
filename: Incomplete
|
|
23
|
-
def __init__(self, fp: Incomplete | None = None, filename: Incomplete | None = None) -> None: ...
|
|
24
|
-
def get_format_mimetype(self): ...
|
|
25
|
-
def verify(self) -> None: ...
|
|
26
|
-
map: Incomplete
|
|
27
|
-
im: Incomplete
|
|
28
|
-
def load(self) -> _PixelAccessor: ...
|
|
29
|
-
def load_prepare(self) -> None: ...
|
|
30
|
-
def load_end(self) -> None: ...
|
|
31
|
-
|
|
32
|
-
class StubImageFile(ImageFile):
|
|
33
|
-
def load(self) -> _PixelAccessor: ...
|
|
34
|
-
|
|
35
|
-
class Parser:
|
|
36
|
-
incremental: Incomplete | None
|
|
37
|
-
image: Incomplete | None
|
|
38
|
-
data: Incomplete | None
|
|
39
|
-
decoder: Incomplete | None
|
|
40
|
-
offset: int
|
|
41
|
-
finished: bool
|
|
42
|
-
def reset(self) -> None: ...
|
|
43
|
-
decode: Incomplete
|
|
44
|
-
def feed(self, data) -> None: ...
|
|
45
|
-
def __enter__(self) -> Self: ...
|
|
46
|
-
def __exit__(self, *args: Unused) -> None: ...
|
|
47
|
-
def close(self) -> Image: ...
|
|
48
|
-
|
|
49
|
-
class PyCodecState:
|
|
50
|
-
xsize: int
|
|
51
|
-
ysize: int
|
|
52
|
-
xoff: int
|
|
53
|
-
yoff: int
|
|
54
|
-
def extents(self) -> tuple[int, int, int, int]: ...
|
|
55
|
-
|
|
56
|
-
class PyCodec:
|
|
57
|
-
im: Incomplete
|
|
58
|
-
state: Incomplete
|
|
59
|
-
fd: Incomplete
|
|
60
|
-
mode: Incomplete
|
|
61
|
-
def __init__(self, mode, *args) -> None: ...
|
|
62
|
-
args: Incomplete
|
|
63
|
-
def init(self, args) -> None: ...
|
|
64
|
-
def cleanup(self) -> None: ...
|
|
65
|
-
def setfd(self, fd) -> None: ...
|
|
66
|
-
def setimage(self, im, extents: Incomplete | None = None) -> None: ...
|
|
67
|
-
|
|
68
|
-
class PyDecoder:
|
|
69
|
-
im: Incomplete
|
|
70
|
-
state: Incomplete
|
|
71
|
-
fd: Incomplete
|
|
72
|
-
mode: Incomplete
|
|
73
|
-
def __init__(self, mode, *args) -> None: ...
|
|
74
|
-
args: Incomplete
|
|
75
|
-
def init(self, args) -> None: ...
|
|
76
|
-
@property
|
|
77
|
-
def pulls_fd(self): ...
|
|
78
|
-
def decode(self, buffer) -> tuple[int, int]: ...
|
|
79
|
-
def cleanup(self) -> None: ...
|
|
80
|
-
def setfd(self, fd) -> None: ...
|
|
81
|
-
def setimage(self, im, extents: Incomplete | None = None) -> None: ...
|
|
82
|
-
def set_as_raw(self, data, rawmode: Incomplete | None = None) -> None: ...
|
|
83
|
-
|
|
84
|
-
class PyEncoder(PyCodec):
|
|
85
|
-
@property
|
|
86
|
-
def pushes_fd(self): ...
|
|
87
|
-
def encode(self, bufsize) -> None: ...
|
|
88
|
-
def encode_to_pyfd(self): ...
|
|
89
|
-
def encode_to_file(self, fh, bufsize): ...
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Callable, Iterable, Sequence
|
|
3
|
-
from typing import Literal
|
|
4
|
-
from typing_extensions import Self, TypeAlias
|
|
5
|
-
|
|
6
|
-
from .Image import Image
|
|
7
|
-
|
|
8
|
-
_FilterArgs: TypeAlias = tuple[Sequence[int], int, int, Sequence[int]]
|
|
9
|
-
|
|
10
|
-
# filter image parameters below are the C images, i.e. Image().im.
|
|
11
|
-
|
|
12
|
-
class Filter: ...
|
|
13
|
-
class MultibandFilter(Filter): ...
|
|
14
|
-
|
|
15
|
-
class BuiltinFilter(MultibandFilter):
|
|
16
|
-
def filter(self, image) -> Image: ...
|
|
17
|
-
|
|
18
|
-
class Kernel(BuiltinFilter):
|
|
19
|
-
name: str
|
|
20
|
-
filterargs: _FilterArgs
|
|
21
|
-
def __init__(self, size: Sequence[int], kernel: Sequence[int], scale: Incomplete | None = None, offset: int = 0) -> None: ...
|
|
22
|
-
|
|
23
|
-
class RankFilter(Filter):
|
|
24
|
-
name: str
|
|
25
|
-
size: int
|
|
26
|
-
rank: int
|
|
27
|
-
def __init__(self, size: int, rank: int) -> None: ...
|
|
28
|
-
def filter(self, image) -> Image: ...
|
|
29
|
-
|
|
30
|
-
class MedianFilter(RankFilter):
|
|
31
|
-
name: str
|
|
32
|
-
size: int
|
|
33
|
-
rank: int
|
|
34
|
-
def __init__(self, size: int = 3) -> None: ...
|
|
35
|
-
|
|
36
|
-
class MinFilter(RankFilter):
|
|
37
|
-
name: str
|
|
38
|
-
size: int
|
|
39
|
-
rank: int
|
|
40
|
-
def __init__(self, size: int = 3) -> None: ...
|
|
41
|
-
|
|
42
|
-
class MaxFilter(RankFilter):
|
|
43
|
-
name: str
|
|
44
|
-
size: int
|
|
45
|
-
rank: int
|
|
46
|
-
def __init__(self, size: int = 3) -> None: ...
|
|
47
|
-
|
|
48
|
-
class ModeFilter(Filter):
|
|
49
|
-
name: str
|
|
50
|
-
size: int
|
|
51
|
-
def __init__(self, size: int = 3) -> None: ...
|
|
52
|
-
def filter(self, image) -> Image: ...
|
|
53
|
-
|
|
54
|
-
class GaussianBlur(MultibandFilter):
|
|
55
|
-
name: str
|
|
56
|
-
radius: float
|
|
57
|
-
def __init__(self, radius: float = 2) -> None: ...
|
|
58
|
-
def filter(self, image) -> Image: ...
|
|
59
|
-
|
|
60
|
-
class BoxBlur(MultibandFilter):
|
|
61
|
-
name: str
|
|
62
|
-
radius: float
|
|
63
|
-
def __init__(self, radius: float) -> None: ...
|
|
64
|
-
def filter(self, image) -> Image: ...
|
|
65
|
-
|
|
66
|
-
class UnsharpMask(MultibandFilter):
|
|
67
|
-
name: str
|
|
68
|
-
radius: float
|
|
69
|
-
percent: int
|
|
70
|
-
threshold: int
|
|
71
|
-
def __init__(self, radius: float = 2, percent: int = 150, threshold: int = 3) -> None: ...
|
|
72
|
-
def filter(self, image) -> Image: ...
|
|
73
|
-
|
|
74
|
-
class BLUR(BuiltinFilter):
|
|
75
|
-
name: str
|
|
76
|
-
filterargs: _FilterArgs
|
|
77
|
-
|
|
78
|
-
class CONTOUR(BuiltinFilter):
|
|
79
|
-
name: str
|
|
80
|
-
filterargs: _FilterArgs
|
|
81
|
-
|
|
82
|
-
class DETAIL(BuiltinFilter):
|
|
83
|
-
name: str
|
|
84
|
-
filterargs: _FilterArgs
|
|
85
|
-
|
|
86
|
-
class EDGE_ENHANCE(BuiltinFilter):
|
|
87
|
-
name: str
|
|
88
|
-
filterargs: _FilterArgs
|
|
89
|
-
|
|
90
|
-
class EDGE_ENHANCE_MORE(BuiltinFilter):
|
|
91
|
-
name: str
|
|
92
|
-
filterargs: _FilterArgs
|
|
93
|
-
|
|
94
|
-
class EMBOSS(BuiltinFilter):
|
|
95
|
-
name: str
|
|
96
|
-
filterargs: _FilterArgs
|
|
97
|
-
|
|
98
|
-
class FIND_EDGES(BuiltinFilter):
|
|
99
|
-
name: str
|
|
100
|
-
filterargs: _FilterArgs
|
|
101
|
-
|
|
102
|
-
class SHARPEN(BuiltinFilter):
|
|
103
|
-
name: str
|
|
104
|
-
filterargs: _FilterArgs
|
|
105
|
-
|
|
106
|
-
class SMOOTH(BuiltinFilter):
|
|
107
|
-
name: str
|
|
108
|
-
filterargs: _FilterArgs
|
|
109
|
-
|
|
110
|
-
class SMOOTH_MORE(BuiltinFilter):
|
|
111
|
-
name: str
|
|
112
|
-
filterargs: _FilterArgs
|
|
113
|
-
|
|
114
|
-
class Color3DLUT(MultibandFilter):
|
|
115
|
-
name: str
|
|
116
|
-
size: list[int]
|
|
117
|
-
channels: int
|
|
118
|
-
mode: str | None
|
|
119
|
-
table: Incomplete
|
|
120
|
-
def __init__(self, size: int | Iterable[int], table, channels: int = 3, target_mode: str | None = None, **kwargs) -> None: ...
|
|
121
|
-
@classmethod
|
|
122
|
-
def generate(
|
|
123
|
-
cls,
|
|
124
|
-
size: int | tuple[int, int, int],
|
|
125
|
-
callback: Callable[[float, float, float], Iterable[float]],
|
|
126
|
-
channels: int = 3,
|
|
127
|
-
target_mode: str | None = None,
|
|
128
|
-
) -> Self: ...
|
|
129
|
-
def transform(
|
|
130
|
-
self,
|
|
131
|
-
callback: Callable[..., Iterable[float]],
|
|
132
|
-
with_normals: bool = False,
|
|
133
|
-
channels: Literal[3, 4] | None = None,
|
|
134
|
-
target_mode: Incomplete | None = None,
|
|
135
|
-
) -> Self: ...
|
|
136
|
-
def filter(self, image) -> Image: ...
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
from _typeshed import FileDescriptorOrPath, Incomplete, SupportsRead
|
|
2
|
-
from enum import IntEnum
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
from typing import Final, Literal, Protocol
|
|
5
|
-
|
|
6
|
-
from PIL.Image import Transpose
|
|
7
|
-
|
|
8
|
-
class Layout(IntEnum):
|
|
9
|
-
BASIC = 0
|
|
10
|
-
RAQM = 1
|
|
11
|
-
|
|
12
|
-
MAX_STRING_LENGTH: Final[int] = 1_000_000
|
|
13
|
-
|
|
14
|
-
class _Font(Protocol):
|
|
15
|
-
def getmask(self, text: str | bytes, mode: str = ..., /, direction=..., features=...): ...
|
|
16
|
-
|
|
17
|
-
class ImageFont:
|
|
18
|
-
def getmask(self, text: str | bytes, mode: str = "", direction=..., features=...): ...
|
|
19
|
-
def getbbox(self, text, *args, **kwargs): ...
|
|
20
|
-
def getlength(self, text, *args, **kwargs): ...
|
|
21
|
-
|
|
22
|
-
class FreeTypeFont:
|
|
23
|
-
path: str | bytes | Path | SupportsRead[bytes] | None
|
|
24
|
-
size: int
|
|
25
|
-
index: int
|
|
26
|
-
encoding: str
|
|
27
|
-
layout_engine: Layout
|
|
28
|
-
font_bytes: bytes # Only exists under some circumstances.
|
|
29
|
-
font: Incomplete
|
|
30
|
-
def __init__(
|
|
31
|
-
self,
|
|
32
|
-
font: str | bytes | Path | SupportsRead[bytes] | None = None,
|
|
33
|
-
size: int = 10,
|
|
34
|
-
index: int = 0,
|
|
35
|
-
encoding: str = "",
|
|
36
|
-
layout_engine: Layout | None = None,
|
|
37
|
-
) -> None: ...
|
|
38
|
-
def getname(self) -> tuple[str, str]: ...
|
|
39
|
-
def getmetrics(self) -> tuple[int, int]: ...
|
|
40
|
-
def getlength(
|
|
41
|
-
self,
|
|
42
|
-
text: str | bytes,
|
|
43
|
-
mode: str = "",
|
|
44
|
-
direction: Literal["ltr", "rtl", "ttb"] | None = None,
|
|
45
|
-
features: Incomplete | None = None,
|
|
46
|
-
language: str | None = None,
|
|
47
|
-
) -> float: ...
|
|
48
|
-
def getbbox(
|
|
49
|
-
self,
|
|
50
|
-
text: str | bytes,
|
|
51
|
-
mode: str = "",
|
|
52
|
-
direction=None,
|
|
53
|
-
features=None,
|
|
54
|
-
language: str | None = None,
|
|
55
|
-
stroke_width: int = 0,
|
|
56
|
-
anchor: str | None = None,
|
|
57
|
-
) -> tuple[int, int, int, int]: ...
|
|
58
|
-
def getmask(
|
|
59
|
-
self,
|
|
60
|
-
text: str | bytes,
|
|
61
|
-
mode: str = "",
|
|
62
|
-
direction: Literal["ltr", "rtl", "ttb"] | None = None,
|
|
63
|
-
features: Incomplete | None = None,
|
|
64
|
-
language: str | None = None,
|
|
65
|
-
stroke_width: float = 0,
|
|
66
|
-
anchor: str | None = None,
|
|
67
|
-
ink=0,
|
|
68
|
-
start: tuple[float, float] | None = None,
|
|
69
|
-
): ...
|
|
70
|
-
def getmask2(
|
|
71
|
-
self,
|
|
72
|
-
text: str | bytes,
|
|
73
|
-
mode: str = "",
|
|
74
|
-
direction: Literal["ltr", "rtl", "ttb"] | None = None,
|
|
75
|
-
features: Incomplete | None = None,
|
|
76
|
-
language: str | None = None,
|
|
77
|
-
stroke_width: float = 0,
|
|
78
|
-
anchor: str | None = None,
|
|
79
|
-
ink=0,
|
|
80
|
-
start: tuple[float, float] | None = None,
|
|
81
|
-
*args,
|
|
82
|
-
**kwargs,
|
|
83
|
-
): ...
|
|
84
|
-
def font_variant(
|
|
85
|
-
self,
|
|
86
|
-
font: str | bytes | Path | SupportsRead[bytes] | None = None,
|
|
87
|
-
size: int | None = None,
|
|
88
|
-
index: int | None = None,
|
|
89
|
-
encoding: str | None = None,
|
|
90
|
-
layout_engine: Layout | None = None,
|
|
91
|
-
) -> FreeTypeFont: ...
|
|
92
|
-
def get_variation_names(self): ...
|
|
93
|
-
def set_variation_by_name(self, name): ...
|
|
94
|
-
def get_variation_axes(self): ...
|
|
95
|
-
def set_variation_by_axes(self, axes): ...
|
|
96
|
-
|
|
97
|
-
class TransposedFont:
|
|
98
|
-
font: _Font
|
|
99
|
-
orientation: Transpose | None
|
|
100
|
-
def __init__(self, font: _Font, orientation: Transpose | None = None) -> None: ...
|
|
101
|
-
def getmask(self, text: str | bytes, mode: str = "", *args, **kwargs): ...
|
|
102
|
-
def getbbox(self, text, *args, **kwargs): ...
|
|
103
|
-
def getlength(self, text, *args, **kwargs): ...
|
|
104
|
-
|
|
105
|
-
def load(filename: FileDescriptorOrPath) -> ImageFont: ...
|
|
106
|
-
def truetype(
|
|
107
|
-
font: str | bytes | SupportsRead[bytes] | None = None,
|
|
108
|
-
size: int = 10,
|
|
109
|
-
index: int = 0,
|
|
110
|
-
encoding: str = "",
|
|
111
|
-
layout_engine: Layout | None = None,
|
|
112
|
-
) -> FreeTypeFont: ...
|
|
113
|
-
def load_path(filename: str | bytes) -> ImageFont: ...
|
|
114
|
-
def load_default(size: int | None = None) -> ImageFont: ...
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
from _typeshed import Incomplete, Unused
|
|
3
|
-
|
|
4
|
-
from PIL.BmpImagePlugin import DibImageFile
|
|
5
|
-
from PIL.PngImagePlugin import PngImageFile
|
|
6
|
-
|
|
7
|
-
from .Image import Image, _Box
|
|
8
|
-
|
|
9
|
-
# include_layered_windows and all_screens are Windows only
|
|
10
|
-
# xdisplay must be None on non-linux platforms7
|
|
11
|
-
if sys.platform == "linux":
|
|
12
|
-
def grab(
|
|
13
|
-
bbox: _Box | None = None,
|
|
14
|
-
include_layered_windows: Unused = False,
|
|
15
|
-
all_screens: Unused = False,
|
|
16
|
-
xdisplay: Incomplete | None = None,
|
|
17
|
-
) -> Image: ...
|
|
18
|
-
|
|
19
|
-
elif sys.platform == "win32":
|
|
20
|
-
def grab(
|
|
21
|
-
bbox: _Box | None = None, include_layered_windows: bool = False, all_screens: bool = False, xdisplay: None = None
|
|
22
|
-
) -> Image: ...
|
|
23
|
-
|
|
24
|
-
else:
|
|
25
|
-
def grab(
|
|
26
|
-
bbox: _Box | None = None, include_layered_windows: Unused = False, all_screens: Unused = False, xdisplay: None = None
|
|
27
|
-
) -> Image: ...
|
|
28
|
-
|
|
29
|
-
if sys.platform == "darwin":
|
|
30
|
-
def grabclipboard() -> Image | None: ...
|
|
31
|
-
|
|
32
|
-
elif sys.platform == "win32":
|
|
33
|
-
def grabclipboard() -> list[str] | PngImageFile | DibImageFile | None: ...
|
|
34
|
-
|
|
35
|
-
else:
|
|
36
|
-
def grabclipboard() -> Image: ...
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
|
|
3
|
-
class _Operand:
|
|
4
|
-
im: Incomplete
|
|
5
|
-
def __init__(self, im) -> None: ...
|
|
6
|
-
def apply(self, op, im1, im2: Incomplete | None = None, mode: Incomplete | None = None): ...
|
|
7
|
-
def __bool__(self) -> bool: ...
|
|
8
|
-
def __abs__(self): ...
|
|
9
|
-
def __pos__(self): ...
|
|
10
|
-
def __neg__(self): ...
|
|
11
|
-
def __add__(self, other): ...
|
|
12
|
-
def __radd__(self, other): ...
|
|
13
|
-
def __sub__(self, other): ...
|
|
14
|
-
def __rsub__(self, other): ...
|
|
15
|
-
def __mul__(self, other): ...
|
|
16
|
-
def __rmul__(self, other): ...
|
|
17
|
-
def __truediv__(self, other): ...
|
|
18
|
-
def __rtruediv__(self, other): ...
|
|
19
|
-
def __mod__(self, other): ...
|
|
20
|
-
def __rmod__(self, other): ...
|
|
21
|
-
def __pow__(self, other): ...
|
|
22
|
-
def __rpow__(self, other): ...
|
|
23
|
-
def __invert__(self): ...
|
|
24
|
-
def __and__(self, other): ...
|
|
25
|
-
def __rand__(self, other): ...
|
|
26
|
-
def __or__(self, other): ...
|
|
27
|
-
def __ror__(self, other): ...
|
|
28
|
-
def __xor__(self, other): ...
|
|
29
|
-
def __rxor__(self, other): ...
|
|
30
|
-
def __lshift__(self, other): ...
|
|
31
|
-
def __rshift__(self, other): ...
|
|
32
|
-
def __eq__(self, other): ...
|
|
33
|
-
def __ne__(self, other): ...
|
|
34
|
-
def __lt__(self, other): ...
|
|
35
|
-
def __le__(self, other): ...
|
|
36
|
-
def __gt__(self, other): ...
|
|
37
|
-
def __ge__(self, other): ...
|
|
38
|
-
|
|
39
|
-
def imagemath_int(self): ...
|
|
40
|
-
def imagemath_float(self): ...
|
|
41
|
-
def imagemath_equal(self, other): ...
|
|
42
|
-
def imagemath_notequal(self, other): ...
|
|
43
|
-
def imagemath_min(self, other): ...
|
|
44
|
-
def imagemath_max(self, other): ...
|
|
45
|
-
def imagemath_convert(self, mode): ...
|
|
46
|
-
|
|
47
|
-
ops: Incomplete
|
|
48
|
-
|
|
49
|
-
def eval(expression, _dict={}, **kw): ...
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
from _typeshed import StrOrBytesPath
|
|
2
|
-
|
|
3
|
-
from .Image import Image
|
|
4
|
-
|
|
5
|
-
LUT_SIZE: int
|
|
6
|
-
ROTATION_MATRIX: list[int]
|
|
7
|
-
MIRROR_MATRIX: list[int]
|
|
8
|
-
|
|
9
|
-
class LutBuilder:
|
|
10
|
-
patterns: list[str]
|
|
11
|
-
lut: bytearray
|
|
12
|
-
def __init__(self, patterns: list[str] | None = None, op_name: str | None = None) -> None: ...
|
|
13
|
-
def add_patterns(self, patterns: list[str]) -> None: ...
|
|
14
|
-
def build_default_lut(self) -> None: ...
|
|
15
|
-
def get_lut(self) -> bytearray: ...
|
|
16
|
-
def build_lut(self) -> bytearray: ...
|
|
17
|
-
|
|
18
|
-
class MorphOp:
|
|
19
|
-
lut: bytearray
|
|
20
|
-
def __init__(self, lut: bytearray | None = None, op_name: str | None = None, patterns: list[str] | None = None) -> None: ...
|
|
21
|
-
def apply(self, image: Image) -> tuple[int, Image]: ...
|
|
22
|
-
def match(self, image: Image) -> list[tuple[int, int]]: ...
|
|
23
|
-
def get_on_pixels(self, image: Image) -> list[tuple[int, int]]: ...
|
|
24
|
-
def load_lut(self, filename: StrOrBytesPath) -> None: ...
|
|
25
|
-
def save_lut(self, filename: StrOrBytesPath) -> None: ...
|
|
26
|
-
def set_lut(self, lut: bytearray) -> None: ...
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Iterable
|
|
3
|
-
from typing import Protocol
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
|
-
|
|
6
|
-
from .Image import Image, Resampling, _Resample, _Size
|
|
7
|
-
from .ImageColor import _Ink
|
|
8
|
-
|
|
9
|
-
_Border: TypeAlias = int | tuple[int, int] | tuple[int, int, int, int]
|
|
10
|
-
|
|
11
|
-
class _Deformer(Protocol):
|
|
12
|
-
def getmesh(self, image: Image, /): ...
|
|
13
|
-
|
|
14
|
-
def autocontrast(
|
|
15
|
-
image: Image,
|
|
16
|
-
cutoff: float | tuple[float, float] = 0,
|
|
17
|
-
ignore: int | None = None,
|
|
18
|
-
mask: Image | None = None,
|
|
19
|
-
preserve_tone: bool = False,
|
|
20
|
-
) -> Image: ...
|
|
21
|
-
def colorize(
|
|
22
|
-
image: Image,
|
|
23
|
-
black: int | str,
|
|
24
|
-
white: int | str,
|
|
25
|
-
mid: int | str | None = None,
|
|
26
|
-
blackpoint: int = 0,
|
|
27
|
-
whitepoint: int = 255,
|
|
28
|
-
midpoint: int = 127,
|
|
29
|
-
) -> Image: ...
|
|
30
|
-
def contain(image: Image, size: _Size, method: Resampling | _Resample = ...) -> Image: ...
|
|
31
|
-
def cover(image: Image, size: _Size, method: Resampling | _Resample = ...) -> Image: ...
|
|
32
|
-
def pad(
|
|
33
|
-
image: Image,
|
|
34
|
-
size: _Size,
|
|
35
|
-
method: Resampling | _Resample = ...,
|
|
36
|
-
color: Incomplete | None = None,
|
|
37
|
-
centering: Iterable[float] = (0.5, 0.5),
|
|
38
|
-
) -> Image: ...
|
|
39
|
-
def crop(image: Image, border: _Border = 0) -> Image: ...
|
|
40
|
-
def scale(image: Image, factor: float, resample: Resampling | _Resample = ...) -> Image: ...
|
|
41
|
-
def deform(image: Image, deformer: _Deformer, resample: Resampling | _Resample = ...) -> Image: ...
|
|
42
|
-
def equalize(image: Image, mask: Incomplete | None = None) -> Image: ...
|
|
43
|
-
def expand(image: Image, border: _Border = 0, fill: _Ink = 0) -> Image: ...
|
|
44
|
-
def fit(
|
|
45
|
-
image: Image, size: _Size, method: Resampling | _Resample = ..., bleed: float = 0.0, centering: Iterable[float] = (0.5, 0.5)
|
|
46
|
-
) -> Image: ...
|
|
47
|
-
def flip(image: Image) -> Image: ...
|
|
48
|
-
def grayscale(image: Image) -> Image: ...
|
|
49
|
-
def invert(image: Image) -> Image: ...
|
|
50
|
-
def mirror(image: Image) -> Image: ...
|
|
51
|
-
def posterize(image: Image, bits: int) -> Image: ...
|
|
52
|
-
def solarize(image: Image, threshold: int = 128) -> Image: ...
|
|
53
|
-
def exif_transpose(image: Image, *, in_place: bool = False) -> Image: ...
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
|
|
3
|
-
from .Image import Image
|
|
4
|
-
|
|
5
|
-
class ImagePalette:
|
|
6
|
-
mode: Incomplete
|
|
7
|
-
rawmode: Incomplete
|
|
8
|
-
palette: Incomplete
|
|
9
|
-
colors: Incomplete
|
|
10
|
-
dirty: Incomplete
|
|
11
|
-
def __init__(self, mode: str = "RGB", palette: Incomplete | None = None) -> None: ...
|
|
12
|
-
def copy(self) -> ImagePalette: ...
|
|
13
|
-
def getdata(self): ...
|
|
14
|
-
def tobytes(self) -> bytes: ...
|
|
15
|
-
tostring = tobytes
|
|
16
|
-
def getcolor(self, color: tuple[int, int, int], image: Image | None = None) -> int: ...
|
|
17
|
-
def save(self, fp) -> None: ...
|
|
18
|
-
|
|
19
|
-
def raw(rawmode, data): ...
|
|
20
|
-
def make_linear_lut(black, white): ...
|
|
21
|
-
def make_gamma_lut(exp): ...
|
|
22
|
-
def negative(mode: str = "RGB"): ...
|
|
23
|
-
def random(mode: str = "RGB"): ...
|
|
24
|
-
def sepia(white: str = "#fff0c0"): ...
|
|
25
|
-
def wedge(mode: str = "RGB"): ...
|
|
26
|
-
def load(filename): ...
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import Any, Literal
|
|
3
|
-
from typing_extensions import TypeAlias
|
|
4
|
-
|
|
5
|
-
from .Image import Image
|
|
6
|
-
|
|
7
|
-
# imported from either of {PyQt6,PySide6,PyQt5,PySide2}.QtGui
|
|
8
|
-
# These are way too complex, with 4 different possible sources (2 deprecated)
|
|
9
|
-
# And we don't want to force the user to install PyQt or Pyside when they may not even use it.
|
|
10
|
-
_QImage: TypeAlias = Any
|
|
11
|
-
_QPixmap: TypeAlias = Any
|
|
12
|
-
|
|
13
|
-
qt_versions: Incomplete
|
|
14
|
-
qt_is_installed: bool
|
|
15
|
-
qt_version: Incomplete
|
|
16
|
-
|
|
17
|
-
def rgb(r: int, g: int, b: int, a: int = 255) -> int: ...
|
|
18
|
-
def fromqimage(im: ImageQt | _QImage) -> Image: ...
|
|
19
|
-
def fromqpixmap(im: ImageQt | _QImage) -> Image: ...
|
|
20
|
-
def align8to32(bytes: bytes, width: int, mode: Literal["1", "L", "P"]) -> bytes: ...
|
|
21
|
-
|
|
22
|
-
class ImageQt(_QImage):
|
|
23
|
-
def __init__(self, im: Image) -> None: ...
|
|
24
|
-
|
|
25
|
-
def toqimage(im: Image) -> ImageQt: ...
|
|
26
|
-
def toqpixmap(im: Image) -> _QPixmap: ...
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from collections.abc import Callable
|
|
2
|
-
from typing_extensions import Self
|
|
3
|
-
|
|
4
|
-
from .Image import Image
|
|
5
|
-
|
|
6
|
-
class Iterator:
|
|
7
|
-
im: Image
|
|
8
|
-
position: int
|
|
9
|
-
def __init__(self, im: Image) -> None: ...
|
|
10
|
-
def __getitem__(self, ix: int) -> Image: ...
|
|
11
|
-
def __iter__(self) -> Self: ...
|
|
12
|
-
def __next__(self) -> Image: ...
|
|
13
|
-
|
|
14
|
-
def all_frames(im: Image | list[Image], func: Callable[[Image], Image] | None = None) -> list[Image]: ...
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete, Unused
|
|
2
|
-
from typing import Any, Literal
|
|
3
|
-
|
|
4
|
-
def register(viewer, order: int = 1) -> None: ...
|
|
5
|
-
def show(image, title: Incomplete | None = None, **options): ...
|
|
6
|
-
|
|
7
|
-
class Viewer:
|
|
8
|
-
def show(self, image, **options): ...
|
|
9
|
-
format: Incomplete
|
|
10
|
-
options: Incomplete
|
|
11
|
-
def get_format(self, image): ...
|
|
12
|
-
# Abstract method
|
|
13
|
-
def get_command(self, file: str, **options: Any) -> str: ...
|
|
14
|
-
def save_image(self, image): ...
|
|
15
|
-
def show_image(self, image, **options): ...
|
|
16
|
-
def show_file(self, path: str, **options: Any) -> Literal[1]: ...
|
|
17
|
-
|
|
18
|
-
class WindowsViewer(Viewer):
|
|
19
|
-
format: str
|
|
20
|
-
options: Incomplete
|
|
21
|
-
def get_command(self, file: str, **options: Unused) -> str: ...
|
|
22
|
-
|
|
23
|
-
class MacViewer(Viewer):
|
|
24
|
-
format: str
|
|
25
|
-
options: Incomplete
|
|
26
|
-
def get_command(self, file: str, **options: Unused) -> str: ...
|
|
27
|
-
def show_file(self, path: str, **options: Unused) -> Literal[1]: ...
|
|
28
|
-
|
|
29
|
-
class UnixViewer(Viewer):
|
|
30
|
-
format: str
|
|
31
|
-
options: Incomplete
|
|
32
|
-
# Unix viewer expects the following method to be implemented on all
|
|
33
|
-
# subclasses, but it isn't defined on the base class.
|
|
34
|
-
# def get_command_ex(self, file: str, **options: Any) -> tuple[str, str]: ...
|
|
35
|
-
def get_command(self, file: str, **options: Any) -> str: ...
|
|
36
|
-
|
|
37
|
-
class XDGViewer(UnixViewer):
|
|
38
|
-
def get_command_ex(self, file: str, **options: Unused) -> tuple[str, str]: ...
|
|
39
|
-
def show_file(self, path: str, **options: Unused) -> Literal[1]: ...
|
|
40
|
-
|
|
41
|
-
class DisplayViewer(UnixViewer):
|
|
42
|
-
def get_command_ex(self, file: str, title: str | None = None, **options: Unused) -> tuple[str, str]: ...
|
|
43
|
-
def show_file(self, path: str, *, title: str | None = None, **options: Unused) -> Literal[1]: ...
|
|
44
|
-
|
|
45
|
-
class GmDisplayViewer(UnixViewer):
|
|
46
|
-
def get_command_ex(self, file: str, **options: Unused) -> tuple[str, str]: ...
|
|
47
|
-
def show_file(self, path: str, **options: Unused) -> Literal[1]: ...
|
|
48
|
-
|
|
49
|
-
class EogViewer(UnixViewer):
|
|
50
|
-
def get_command_ex(self, file: str, **options: Unused) -> tuple[str, str]: ...
|
|
51
|
-
def show_file(self, path: str, **options: Unused) -> Literal[1]: ...
|
|
52
|
-
|
|
53
|
-
class XVViewer(UnixViewer):
|
|
54
|
-
def get_command_ex(self, file, title: str | None = None, **options: Unused) -> tuple[str, str]: ...
|
|
55
|
-
def show_file(self, path: str, *, title: str | None = None, **options: Unused) -> Literal[1]: ...
|
|
56
|
-
|
|
57
|
-
class IPythonViewer(Viewer):
|
|
58
|
-
def show_image(self, image, **options: Unused) -> Literal[1]: ...
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
|
|
3
|
-
class Stat:
|
|
4
|
-
h: Incomplete
|
|
5
|
-
bands: Incomplete
|
|
6
|
-
count: list[int]
|
|
7
|
-
mean: list[float]
|
|
8
|
-
rms: list[float]
|
|
9
|
-
stddev: list[float]
|
|
10
|
-
var: list[float]
|
|
11
|
-
def __init__(self, image_or_list, mask: Incomplete | None = None) -> None: ...
|
|
12
|
-
def __getattr__(self, id: str): ...
|
|
13
|
-
|
|
14
|
-
Global = Stat
|