mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 10:21:14 +08:00
Add precise values for enum members where possible (#11299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -5,17 +5,17 @@ from typing import ClassVar, Literal
|
||||
from .ImageFile import ImageFile, PyDecoder, PyEncoder
|
||||
|
||||
class Format(IntEnum):
|
||||
JPEG: int
|
||||
JPEG = 0
|
||||
|
||||
class Encoding(IntEnum):
|
||||
UNCOMPRESSED: int
|
||||
DXT: int
|
||||
UNCOMPRESSED_RAW_BGRA: int
|
||||
UNCOMPRESSED = 1
|
||||
DXT = 2
|
||||
UNCOMPRESSED_RAW_BGRA = 3
|
||||
|
||||
class AlphaEncoding(IntEnum):
|
||||
DXT1: int
|
||||
DXT3: int
|
||||
DXT5: int
|
||||
DXT1 = 0
|
||||
DXT3 = 1
|
||||
DXT5 = 7
|
||||
|
||||
def unpack_565(i): ...
|
||||
def decode_dxt1(data, alpha: bool = False): ...
|
||||
|
||||
@@ -2,346 +2,346 @@ from collections.abc import Mapping
|
||||
from enum import IntEnum
|
||||
|
||||
class Base(IntEnum):
|
||||
InteropIndex: int
|
||||
ProcessingSoftware: int
|
||||
NewSubfileType: int
|
||||
SubfileType: int
|
||||
ImageWidth: int
|
||||
ImageLength: int
|
||||
BitsPerSample: int
|
||||
Compression: int
|
||||
PhotometricInterpretation: int
|
||||
Thresholding: int
|
||||
CellWidth: int
|
||||
CellLength: int
|
||||
FillOrder: int
|
||||
DocumentName: int
|
||||
ImageDescription: int
|
||||
Make: int
|
||||
Model: int
|
||||
StripOffsets: int
|
||||
Orientation: int
|
||||
SamplesPerPixel: int
|
||||
RowsPerStrip: int
|
||||
StripByteCounts: int
|
||||
MinSampleValue: int
|
||||
MaxSampleValue: int
|
||||
XResolution: int
|
||||
YResolution: int
|
||||
PlanarConfiguration: int
|
||||
PageName: int
|
||||
FreeOffsets: int
|
||||
FreeByteCounts: int
|
||||
GrayResponseUnit: int
|
||||
GrayResponseCurve: int
|
||||
T4Options: int
|
||||
T6Options: int
|
||||
ResolutionUnit: int
|
||||
PageNumber: int
|
||||
TransferFunction: int
|
||||
Software: int
|
||||
DateTime: int
|
||||
Artist: int
|
||||
HostComputer: int
|
||||
Predictor: int
|
||||
WhitePoint: int
|
||||
PrimaryChromaticities: int
|
||||
ColorMap: int
|
||||
HalftoneHints: int
|
||||
TileWidth: int
|
||||
TileLength: int
|
||||
TileOffsets: int
|
||||
TileByteCounts: int
|
||||
SubIFDs: int
|
||||
InkSet: int
|
||||
InkNames: int
|
||||
NumberOfInks: int
|
||||
DotRange: int
|
||||
TargetPrinter: int
|
||||
ExtraSamples: int
|
||||
SampleFormat: int
|
||||
SMinSampleValue: int
|
||||
SMaxSampleValue: int
|
||||
TransferRange: int
|
||||
ClipPath: int
|
||||
XClipPathUnits: int
|
||||
YClipPathUnits: int
|
||||
Indexed: int
|
||||
JPEGTables: int
|
||||
OPIProxy: int
|
||||
JPEGProc: int
|
||||
JpegIFOffset: int
|
||||
JpegIFByteCount: int
|
||||
JpegRestartInterval: int
|
||||
JpegLosslessPredictors: int
|
||||
JpegPointTransforms: int
|
||||
JpegQTables: int
|
||||
JpegDCTables: int
|
||||
JpegACTables: int
|
||||
YCbCrCoefficients: int
|
||||
YCbCrSubSampling: int
|
||||
YCbCrPositioning: int
|
||||
ReferenceBlackWhite: int
|
||||
XMLPacket: int
|
||||
RelatedImageFileFormat: int
|
||||
RelatedImageWidth: int
|
||||
RelatedImageLength: int
|
||||
Rating: int
|
||||
RatingPercent: int
|
||||
ImageID: int
|
||||
CFARepeatPatternDim: int
|
||||
BatteryLevel: int
|
||||
Copyright: int
|
||||
ExposureTime: int
|
||||
FNumber: int
|
||||
IPTCNAA: int
|
||||
ImageResources: int
|
||||
ExifOffset: int
|
||||
InterColorProfile: int
|
||||
ExposureProgram: int
|
||||
SpectralSensitivity: int
|
||||
GPSInfo: int
|
||||
ISOSpeedRatings: int
|
||||
OECF: int
|
||||
Interlace: int
|
||||
TimeZoneOffset: int
|
||||
SelfTimerMode: int
|
||||
SensitivityType: int
|
||||
StandardOutputSensitivity: int
|
||||
RecommendedExposureIndex: int
|
||||
ISOSpeed: int
|
||||
ISOSpeedLatitudeyyy: int
|
||||
ISOSpeedLatitudezzz: int
|
||||
ExifVersion: int
|
||||
DateTimeOriginal: int
|
||||
DateTimeDigitized: int
|
||||
OffsetTime: int
|
||||
OffsetTimeOriginal: int
|
||||
OffsetTimeDigitized: int
|
||||
ComponentsConfiguration: int
|
||||
CompressedBitsPerPixel: int
|
||||
ShutterSpeedValue: int
|
||||
ApertureValue: int
|
||||
BrightnessValue: int
|
||||
ExposureBiasValue: int
|
||||
MaxApertureValue: int
|
||||
SubjectDistance: int
|
||||
MeteringMode: int
|
||||
LightSource: int
|
||||
Flash: int
|
||||
FocalLength: int
|
||||
Noise: int
|
||||
ImageNumber: int
|
||||
SecurityClassification: int
|
||||
ImageHistory: int
|
||||
TIFFEPStandardID: int
|
||||
MakerNote: int
|
||||
UserComment: int
|
||||
SubsecTime: int
|
||||
SubsecTimeOriginal: int
|
||||
SubsecTimeDigitized: int
|
||||
AmbientTemperature: int
|
||||
Humidity: int
|
||||
Pressure: int
|
||||
WaterDepth: int
|
||||
Acceleration: int
|
||||
CameraElevationAngle: int
|
||||
XPTitle: int
|
||||
XPComment: int
|
||||
XPAuthor: int
|
||||
XPKeywords: int
|
||||
XPSubject: int
|
||||
FlashPixVersion: int
|
||||
ColorSpace: int
|
||||
ExifImageWidth: int
|
||||
ExifImageHeight: int
|
||||
RelatedSoundFile: int
|
||||
ExifInteroperabilityOffset: int
|
||||
FlashEnergy: int
|
||||
SpatialFrequencyResponse: int
|
||||
FocalPlaneXResolution: int
|
||||
FocalPlaneYResolution: int
|
||||
FocalPlaneResolutionUnit: int
|
||||
SubjectLocation: int
|
||||
ExposureIndex: int
|
||||
SensingMethod: int
|
||||
FileSource: int
|
||||
SceneType: int
|
||||
CFAPattern: int
|
||||
CustomRendered: int
|
||||
ExposureMode: int
|
||||
WhiteBalance: int
|
||||
DigitalZoomRatio: int
|
||||
FocalLengthIn35mmFilm: int
|
||||
SceneCaptureType: int
|
||||
GainControl: int
|
||||
Contrast: int
|
||||
Saturation: int
|
||||
Sharpness: int
|
||||
DeviceSettingDescription: int
|
||||
SubjectDistanceRange: int
|
||||
ImageUniqueID: int
|
||||
CameraOwnerName: int
|
||||
BodySerialNumber: int
|
||||
LensSpecification: int
|
||||
LensMake: int
|
||||
LensModel: int
|
||||
LensSerialNumber: int
|
||||
CompositeImage: int
|
||||
CompositeImageCount: int
|
||||
CompositeImageExposureTimes: int
|
||||
Gamma: int
|
||||
PrintImageMatching: int
|
||||
DNGVersion: int
|
||||
DNGBackwardVersion: int
|
||||
UniqueCameraModel: int
|
||||
LocalizedCameraModel: int
|
||||
CFAPlaneColor: int
|
||||
CFALayout: int
|
||||
LinearizationTable: int
|
||||
BlackLevelRepeatDim: int
|
||||
BlackLevel: int
|
||||
BlackLevelDeltaH: int
|
||||
BlackLevelDeltaV: int
|
||||
WhiteLevel: int
|
||||
DefaultScale: int
|
||||
DefaultCropOrigin: int
|
||||
DefaultCropSize: int
|
||||
ColorMatrix1: int
|
||||
ColorMatrix2: int
|
||||
CameraCalibration1: int
|
||||
CameraCalibration2: int
|
||||
ReductionMatrix1: int
|
||||
ReductionMatrix2: int
|
||||
AnalogBalance: int
|
||||
AsShotNeutral: int
|
||||
AsShotWhiteXY: int
|
||||
BaselineExposure: int
|
||||
BaselineNoise: int
|
||||
BaselineSharpness: int
|
||||
BayerGreenSplit: int
|
||||
LinearResponseLimit: int
|
||||
CameraSerialNumber: int
|
||||
LensInfo: int
|
||||
ChromaBlurRadius: int
|
||||
AntiAliasStrength: int
|
||||
ShadowScale: int
|
||||
DNGPrivateData: int
|
||||
MakerNoteSafety: int
|
||||
CalibrationIlluminant1: int
|
||||
CalibrationIlluminant2: int
|
||||
BestQualityScale: int
|
||||
RawDataUniqueID: int
|
||||
OriginalRawFileName: int
|
||||
OriginalRawFileData: int
|
||||
ActiveArea: int
|
||||
MaskedAreas: int
|
||||
AsShotICCProfile: int
|
||||
AsShotPreProfileMatrix: int
|
||||
CurrentICCProfile: int
|
||||
CurrentPreProfileMatrix: int
|
||||
ColorimetricReference: int
|
||||
CameraCalibrationSignature: int
|
||||
ProfileCalibrationSignature: int
|
||||
AsShotProfileName: int
|
||||
NoiseReductionApplied: int
|
||||
ProfileName: int
|
||||
ProfileHueSatMapDims: int
|
||||
ProfileHueSatMapData1: int
|
||||
ProfileHueSatMapData2: int
|
||||
ProfileToneCurve: int
|
||||
ProfileEmbedPolicy: int
|
||||
ProfileCopyright: int
|
||||
ForwardMatrix1: int
|
||||
ForwardMatrix2: int
|
||||
PreviewApplicationName: int
|
||||
PreviewApplicationVersion: int
|
||||
PreviewSettingsName: int
|
||||
PreviewSettingsDigest: int
|
||||
PreviewColorSpace: int
|
||||
PreviewDateTime: int
|
||||
RawImageDigest: int
|
||||
OriginalRawFileDigest: int
|
||||
SubTileBlockSize: int
|
||||
RowInterleaveFactor: int
|
||||
ProfileLookTableDims: int
|
||||
ProfileLookTableData: int
|
||||
OpcodeList1: int
|
||||
OpcodeList2: int
|
||||
OpcodeList3: int
|
||||
NoiseProfile: int
|
||||
InteropIndex = 0x0001
|
||||
ProcessingSoftware = 0x000B
|
||||
NewSubfileType = 0x00FE
|
||||
SubfileType = 0x00FF
|
||||
ImageWidth = 0x0100
|
||||
ImageLength = 0x0101
|
||||
BitsPerSample = 0x0102
|
||||
Compression = 0x0103
|
||||
PhotometricInterpretation = 0x0106
|
||||
Thresholding = 0x0107
|
||||
CellWidth = 0x0108
|
||||
CellLength = 0x0109
|
||||
FillOrder = 0x010A
|
||||
DocumentName = 0x010D
|
||||
ImageDescription = 0x010E
|
||||
Make = 0x010F
|
||||
Model = 0x0110
|
||||
StripOffsets = 0x0111
|
||||
Orientation = 0x0112
|
||||
SamplesPerPixel = 0x0115
|
||||
RowsPerStrip = 0x0116
|
||||
StripByteCounts = 0x0117
|
||||
MinSampleValue = 0x0118
|
||||
MaxSampleValue = 0x0119
|
||||
XResolution = 0x011A
|
||||
YResolution = 0x011B
|
||||
PlanarConfiguration = 0x011C
|
||||
PageName = 0x011D
|
||||
FreeOffsets = 0x0120
|
||||
FreeByteCounts = 0x0121
|
||||
GrayResponseUnit = 0x0122
|
||||
GrayResponseCurve = 0x0123
|
||||
T4Options = 0x0124
|
||||
T6Options = 0x0125
|
||||
ResolutionUnit = 0x0128
|
||||
PageNumber = 0x0129
|
||||
TransferFunction = 0x012D
|
||||
Software = 0x0131
|
||||
DateTime = 0x0132
|
||||
Artist = 0x013B
|
||||
HostComputer = 0x013C
|
||||
Predictor = 0x013D
|
||||
WhitePoint = 0x013E
|
||||
PrimaryChromaticities = 0x013F
|
||||
ColorMap = 0x0140
|
||||
HalftoneHints = 0x0141
|
||||
TileWidth = 0x0142
|
||||
TileLength = 0x0143
|
||||
TileOffsets = 0x0144
|
||||
TileByteCounts = 0x0145
|
||||
SubIFDs = 0x014A
|
||||
InkSet = 0x014C
|
||||
InkNames = 0x014D
|
||||
NumberOfInks = 0x014E
|
||||
DotRange = 0x0150
|
||||
TargetPrinter = 0x0151
|
||||
ExtraSamples = 0x0152
|
||||
SampleFormat = 0x0153
|
||||
SMinSampleValue = 0x0154
|
||||
SMaxSampleValue = 0x0155
|
||||
TransferRange = 0x0156
|
||||
ClipPath = 0x0157
|
||||
XClipPathUnits = 0x0158
|
||||
YClipPathUnits = 0x0159
|
||||
Indexed = 0x015A
|
||||
JPEGTables = 0x015B
|
||||
OPIProxy = 0x015F
|
||||
JPEGProc = 0x0200
|
||||
JpegIFOffset = 0x0201
|
||||
JpegIFByteCount = 0x0202
|
||||
JpegRestartInterval = 0x0203
|
||||
JpegLosslessPredictors = 0x0205
|
||||
JpegPointTransforms = 0x0206
|
||||
JpegQTables = 0x0207
|
||||
JpegDCTables = 0x0208
|
||||
JpegACTables = 0x0209
|
||||
YCbCrCoefficients = 0x0211
|
||||
YCbCrSubSampling = 0x0212
|
||||
YCbCrPositioning = 0x0213
|
||||
ReferenceBlackWhite = 0x0214
|
||||
XMLPacket = 0x02BC
|
||||
RelatedImageFileFormat = 0x1000
|
||||
RelatedImageWidth = 0x1001
|
||||
RelatedImageLength = 0x1002
|
||||
Rating = 0x4746
|
||||
RatingPercent = 0x4749
|
||||
ImageID = 0x800D
|
||||
CFARepeatPatternDim = 0x828D
|
||||
BatteryLevel = 0x828F
|
||||
Copyright = 0x8298
|
||||
ExposureTime = 0x829A
|
||||
FNumber = 0x829D
|
||||
IPTCNAA = 0x83BB
|
||||
ImageResources = 0x8649
|
||||
ExifOffset = 0x8769
|
||||
InterColorProfile = 0x8773
|
||||
ExposureProgram = 0x8822
|
||||
SpectralSensitivity = 0x8824
|
||||
GPSInfo = 0x8825
|
||||
ISOSpeedRatings = 0x8827
|
||||
OECF = 0x8828
|
||||
Interlace = 0x8829
|
||||
TimeZoneOffset = 0x882A
|
||||
SelfTimerMode = 0x882B
|
||||
SensitivityType = 0x8830
|
||||
StandardOutputSensitivity = 0x8831
|
||||
RecommendedExposureIndex = 0x8832
|
||||
ISOSpeed = 0x8833
|
||||
ISOSpeedLatitudeyyy = 0x8834
|
||||
ISOSpeedLatitudezzz = 0x8835
|
||||
ExifVersion = 0x9000
|
||||
DateTimeOriginal = 0x9003
|
||||
DateTimeDigitized = 0x9004
|
||||
OffsetTime = 0x9010
|
||||
OffsetTimeOriginal = 0x9011
|
||||
OffsetTimeDigitized = 0x9012
|
||||
ComponentsConfiguration = 0x9101
|
||||
CompressedBitsPerPixel = 0x9102
|
||||
ShutterSpeedValue = 0x9201
|
||||
ApertureValue = 0x9202
|
||||
BrightnessValue = 0x9203
|
||||
ExposureBiasValue = 0x9204
|
||||
MaxApertureValue = 0x9205
|
||||
SubjectDistance = 0x9206
|
||||
MeteringMode = 0x9207
|
||||
LightSource = 0x9208
|
||||
Flash = 0x9209
|
||||
FocalLength = 0x920A
|
||||
Noise = 0x920D
|
||||
ImageNumber = 0x9211
|
||||
SecurityClassification = 0x9212
|
||||
ImageHistory = 0x9213
|
||||
TIFFEPStandardID = 0x9216
|
||||
MakerNote = 0x927C
|
||||
UserComment = 0x9286
|
||||
SubsecTime = 0x9290
|
||||
SubsecTimeOriginal = 0x9291
|
||||
SubsecTimeDigitized = 0x9292
|
||||
AmbientTemperature = 0x9400
|
||||
Humidity = 0x9401
|
||||
Pressure = 0x9402
|
||||
WaterDepth = 0x9403
|
||||
Acceleration = 0x9404
|
||||
CameraElevationAngle = 0x9405
|
||||
XPTitle = 0x9C9B
|
||||
XPComment = 0x9C9C
|
||||
XPAuthor = 0x9C9D
|
||||
XPKeywords = 0x9C9E
|
||||
XPSubject = 0x9C9F
|
||||
FlashPixVersion = 0xA000
|
||||
ColorSpace = 0xA001
|
||||
ExifImageWidth = 0xA002
|
||||
ExifImageHeight = 0xA003
|
||||
RelatedSoundFile = 0xA004
|
||||
ExifInteroperabilityOffset = 0xA005
|
||||
FlashEnergy = 0xA20B
|
||||
SpatialFrequencyResponse = 0xA20C
|
||||
FocalPlaneXResolution = 0xA20E
|
||||
FocalPlaneYResolution = 0xA20F
|
||||
FocalPlaneResolutionUnit = 0xA210
|
||||
SubjectLocation = 0xA214
|
||||
ExposureIndex = 0xA215
|
||||
SensingMethod = 0xA217
|
||||
FileSource = 0xA300
|
||||
SceneType = 0xA301
|
||||
CFAPattern = 0xA302
|
||||
CustomRendered = 0xA401
|
||||
ExposureMode = 0xA402
|
||||
WhiteBalance = 0xA403
|
||||
DigitalZoomRatio = 0xA404
|
||||
FocalLengthIn35mmFilm = 0xA405
|
||||
SceneCaptureType = 0xA406
|
||||
GainControl = 0xA407
|
||||
Contrast = 0xA408
|
||||
Saturation = 0xA409
|
||||
Sharpness = 0xA40A
|
||||
DeviceSettingDescription = 0xA40B
|
||||
SubjectDistanceRange = 0xA40C
|
||||
ImageUniqueID = 0xA420
|
||||
CameraOwnerName = 0xA430
|
||||
BodySerialNumber = 0xA431
|
||||
LensSpecification = 0xA432
|
||||
LensMake = 0xA433
|
||||
LensModel = 0xA434
|
||||
LensSerialNumber = 0xA435
|
||||
CompositeImage = 0xA460
|
||||
CompositeImageCount = 0xA461
|
||||
CompositeImageExposureTimes = 0xA462
|
||||
Gamma = 0xA500
|
||||
PrintImageMatching = 0xC4A5
|
||||
DNGVersion = 0xC612
|
||||
DNGBackwardVersion = 0xC613
|
||||
UniqueCameraModel = 0xC614
|
||||
LocalizedCameraModel = 0xC615
|
||||
CFAPlaneColor = 0xC616
|
||||
CFALayout = 0xC617
|
||||
LinearizationTable = 0xC618
|
||||
BlackLevelRepeatDim = 0xC619
|
||||
BlackLevel = 0xC61A
|
||||
BlackLevelDeltaH = 0xC61B
|
||||
BlackLevelDeltaV = 0xC61C
|
||||
WhiteLevel = 0xC61D
|
||||
DefaultScale = 0xC61E
|
||||
DefaultCropOrigin = 0xC61F
|
||||
DefaultCropSize = 0xC620
|
||||
ColorMatrix1 = 0xC621
|
||||
ColorMatrix2 = 0xC622
|
||||
CameraCalibration1 = 0xC623
|
||||
CameraCalibration2 = 0xC624
|
||||
ReductionMatrix1 = 0xC625
|
||||
ReductionMatrix2 = 0xC626
|
||||
AnalogBalance = 0xC627
|
||||
AsShotNeutral = 0xC628
|
||||
AsShotWhiteXY = 0xC629
|
||||
BaselineExposure = 0xC62A
|
||||
BaselineNoise = 0xC62B
|
||||
BaselineSharpness = 0xC62C
|
||||
BayerGreenSplit = 0xC62D
|
||||
LinearResponseLimit = 0xC62E
|
||||
CameraSerialNumber = 0xC62F
|
||||
LensInfo = 0xC630
|
||||
ChromaBlurRadius = 0xC631
|
||||
AntiAliasStrength = 0xC632
|
||||
ShadowScale = 0xC633
|
||||
DNGPrivateData = 0xC634
|
||||
MakerNoteSafety = 0xC635
|
||||
CalibrationIlluminant1 = 0xC65A
|
||||
CalibrationIlluminant2 = 0xC65B
|
||||
BestQualityScale = 0xC65C
|
||||
RawDataUniqueID = 0xC65D
|
||||
OriginalRawFileName = 0xC68B
|
||||
OriginalRawFileData = 0xC68C
|
||||
ActiveArea = 0xC68D
|
||||
MaskedAreas = 0xC68E
|
||||
AsShotICCProfile = 0xC68F
|
||||
AsShotPreProfileMatrix = 0xC690
|
||||
CurrentICCProfile = 0xC691
|
||||
CurrentPreProfileMatrix = 0xC692
|
||||
ColorimetricReference = 0xC6BF
|
||||
CameraCalibrationSignature = 0xC6F3
|
||||
ProfileCalibrationSignature = 0xC6F4
|
||||
AsShotProfileName = 0xC6F6
|
||||
NoiseReductionApplied = 0xC6F7
|
||||
ProfileName = 0xC6F8
|
||||
ProfileHueSatMapDims = 0xC6F9
|
||||
ProfileHueSatMapData1 = 0xC6FA
|
||||
ProfileHueSatMapData2 = 0xC6FB
|
||||
ProfileToneCurve = 0xC6FC
|
||||
ProfileEmbedPolicy = 0xC6FD
|
||||
ProfileCopyright = 0xC6FE
|
||||
ForwardMatrix1 = 0xC714
|
||||
ForwardMatrix2 = 0xC715
|
||||
PreviewApplicationName = 0xC716
|
||||
PreviewApplicationVersion = 0xC717
|
||||
PreviewSettingsName = 0xC718
|
||||
PreviewSettingsDigest = 0xC719
|
||||
PreviewColorSpace = 0xC71A
|
||||
PreviewDateTime = 0xC71B
|
||||
RawImageDigest = 0xC71C
|
||||
OriginalRawFileDigest = 0xC71D
|
||||
SubTileBlockSize = 0xC71E
|
||||
RowInterleaveFactor = 0xC71F
|
||||
ProfileLookTableDims = 0xC725
|
||||
ProfileLookTableData = 0xC726
|
||||
OpcodeList1 = 0xC740
|
||||
OpcodeList2 = 0xC741
|
||||
OpcodeList3 = 0xC74E
|
||||
NoiseProfile = 0xC761
|
||||
|
||||
TAGS: Mapping[int, str]
|
||||
|
||||
class GPS(IntEnum):
|
||||
GPSVersionID: int
|
||||
GPSLatitudeRef: int
|
||||
GPSLatitude: int
|
||||
GPSLongitudeRef: int
|
||||
GPSLongitude: int
|
||||
GPSAltitudeRef: int
|
||||
GPSAltitude: int
|
||||
GPSTimeStamp: int
|
||||
GPSSatellites: int
|
||||
GPSStatus: int
|
||||
GPSMeasureMode: int
|
||||
GPSDOP: int
|
||||
GPSSpeedRef: int
|
||||
GPSSpeed: int
|
||||
GPSTrackRef: int
|
||||
GPSTrack: int
|
||||
GPSImgDirectionRef: int
|
||||
GPSImgDirection: int
|
||||
GPSMapDatum: int
|
||||
GPSDestLatitudeRef: int
|
||||
GPSDestLatitude: int
|
||||
GPSDestLongitudeRef: int
|
||||
GPSDestLongitude: int
|
||||
GPSDestBearingRef: int
|
||||
GPSDestBearing: int
|
||||
GPSDestDistanceRef: int
|
||||
GPSDestDistance: int
|
||||
GPSProcessingMethod: int
|
||||
GPSAreaInformation: int
|
||||
GPSDateStamp: int
|
||||
GPSDifferential: int
|
||||
GPSHPositioningError: int
|
||||
GPSVersionID = 0
|
||||
GPSLatitudeRef = 1
|
||||
GPSLatitude = 2
|
||||
GPSLongitudeRef = 3
|
||||
GPSLongitude = 4
|
||||
GPSAltitudeRef = 5
|
||||
GPSAltitude = 6
|
||||
GPSTimeStamp = 7
|
||||
GPSSatellites = 8
|
||||
GPSStatus = 9
|
||||
GPSMeasureMode = 10
|
||||
GPSDOP = 11
|
||||
GPSSpeedRef = 12
|
||||
GPSSpeed = 13
|
||||
GPSTrackRef = 14
|
||||
GPSTrack = 15
|
||||
GPSImgDirectionRef = 16
|
||||
GPSImgDirection = 17
|
||||
GPSMapDatum = 18
|
||||
GPSDestLatitudeRef = 19
|
||||
GPSDestLatitude = 20
|
||||
GPSDestLongitudeRef = 21
|
||||
GPSDestLongitude = 22
|
||||
GPSDestBearingRef = 23
|
||||
GPSDestBearing = 24
|
||||
GPSDestDistanceRef = 25
|
||||
GPSDestDistance = 26
|
||||
GPSProcessingMethod = 27
|
||||
GPSAreaInformation = 28
|
||||
GPSDateStamp = 29
|
||||
GPSDifferential = 30
|
||||
GPSHPositioningError = 31
|
||||
|
||||
GPSTAGS: Mapping[int, str]
|
||||
|
||||
class Interop(IntEnum):
|
||||
InteropIndex: int
|
||||
InteropVersion: int
|
||||
RelatedImageFileFormat: int
|
||||
RelatedImageWidth: int
|
||||
RleatedImageHeight: int
|
||||
InteropIndex = 1
|
||||
InteropVersion = 2
|
||||
RelatedImageFileFormat = 4096
|
||||
RelatedImageWidth = 4097
|
||||
RleatedImageHeight = 4098
|
||||
|
||||
class IFD(IntEnum):
|
||||
Exif: int
|
||||
GPSInfo: int
|
||||
Makernote: int
|
||||
Interop: int
|
||||
IFD1: int
|
||||
Exif = 34665
|
||||
GPSInfo = 34853
|
||||
Makernote = 37500
|
||||
Interop = 40965
|
||||
IFD1 = -1
|
||||
|
||||
class LightSource(IntEnum):
|
||||
Unknown: int
|
||||
Daylight: int
|
||||
Fluorescent: int
|
||||
Tungsten: int
|
||||
Flash: int
|
||||
Fine: int
|
||||
Cloudy: int
|
||||
Shade: int
|
||||
DaylightFluorescent: int
|
||||
DayWhiteFluorescent: int
|
||||
CoolWhiteFluorescent: int
|
||||
WhiteFluorescent: int
|
||||
StandardLightA: int
|
||||
StandardLightB: int
|
||||
StandardLightC: int
|
||||
D55: int
|
||||
D65: int
|
||||
D75: int
|
||||
D50: int
|
||||
ISO: int
|
||||
Other: int
|
||||
Unknown = 0
|
||||
Daylight = 1
|
||||
Fluorescent = 2
|
||||
Tungsten = 3
|
||||
Flash = 4
|
||||
Fine = 9
|
||||
Cloudy = 10
|
||||
Shade = 11
|
||||
DaylightFluorescent = 12
|
||||
DayWhiteFluorescent = 13
|
||||
CoolWhiteFluorescent = 14
|
||||
WhiteFluorescent = 15
|
||||
StandardLightA = 17
|
||||
StandardLightB = 18
|
||||
StandardLightC = 19
|
||||
D55 = 20
|
||||
D65 = 21
|
||||
D75 = 22
|
||||
D50 = 23
|
||||
ISO = 24
|
||||
Other = 255
|
||||
|
||||
@@ -6,8 +6,8 @@ from .ImageFile import ImageFile
|
||||
MAGIC: bytes
|
||||
|
||||
class Format(IntEnum):
|
||||
DXT1: int
|
||||
UNCOMPRESSED: int
|
||||
DXT1 = 0
|
||||
UNCOMPRESSED = 1
|
||||
|
||||
class FtexImageFile(ImageFile):
|
||||
format: ClassVar[Literal["FTEX"]]
|
||||
|
||||
@@ -56,13 +56,13 @@ USE_CFFI_ACCESS: bool
|
||||
def isImageType(t: object) -> TypeGuard[Image]: ...
|
||||
|
||||
class Transpose(IntEnum):
|
||||
FLIP_LEFT_RIGHT: Literal[0]
|
||||
FLIP_TOP_BOTTOM: Literal[1]
|
||||
ROTATE_90: Literal[2]
|
||||
ROTATE_180: Literal[3]
|
||||
ROTATE_270: Literal[4]
|
||||
TRANSPOSE: Literal[5]
|
||||
TRANSVERSE: Literal[6]
|
||||
FLIP_LEFT_RIGHT = 0
|
||||
FLIP_TOP_BOTTOM = 1
|
||||
ROTATE_90 = 2
|
||||
ROTATE_180 = 3
|
||||
ROTATE_270 = 4
|
||||
TRANSPOSE = 5
|
||||
TRANSVERSE = 6
|
||||
|
||||
# All Transpose items
|
||||
FLIP_LEFT_RIGHT: Literal[0]
|
||||
@@ -74,11 +74,11 @@ TRANSPOSE: Literal[5]
|
||||
TRANSVERSE: Literal[6]
|
||||
|
||||
class Transform(IntEnum):
|
||||
AFFINE: Literal[0]
|
||||
EXTENT: Literal[1]
|
||||
PERSPECTIVE: Literal[2]
|
||||
QUAD: Literal[3]
|
||||
MESH: Literal[4]
|
||||
AFFINE = 0
|
||||
EXTENT = 1
|
||||
PERSPECTIVE = 2
|
||||
QUAD = 3
|
||||
MESH = 4
|
||||
|
||||
# All Transform items
|
||||
AFFINE: Literal[0]
|
||||
@@ -88,12 +88,12 @@ QUAD: Literal[3]
|
||||
MESH: Literal[4]
|
||||
|
||||
class Resampling(IntEnum):
|
||||
NEAREST: Literal[0]
|
||||
LANCZOS: Literal[1]
|
||||
BILINEAR: Literal[2]
|
||||
BICUBIC: Literal[3]
|
||||
BOX: Literal[4]
|
||||
HAMMING: Literal[5]
|
||||
NEAREST = 0
|
||||
LANCZOS = 1
|
||||
BILINEAR = 2
|
||||
BICUBIC = 3
|
||||
BOX = 4
|
||||
HAMMING = 5
|
||||
|
||||
# All Resampling items
|
||||
NEAREST: Literal[0]
|
||||
@@ -104,10 +104,10 @@ BOX: Literal[4]
|
||||
HAMMING: Literal[5]
|
||||
|
||||
class Dither(IntEnum):
|
||||
NONE: Literal[0]
|
||||
ORDERED: Literal[1]
|
||||
RASTERIZE: Literal[2]
|
||||
FLOYDSTEINBERG: Literal[3]
|
||||
NONE = 0
|
||||
ORDERED = 1
|
||||
RASTERIZE = 2
|
||||
FLOYDSTEINBERG = 3
|
||||
|
||||
# All Dither items
|
||||
NONE: Literal[0]
|
||||
@@ -116,18 +116,18 @@ RASTERIZE: Literal[2]
|
||||
FLOYDSTEINBERG: Literal[3]
|
||||
|
||||
class Palette(IntEnum):
|
||||
WEB: Literal[0]
|
||||
ADAPTIVE: Literal[1]
|
||||
WEB = 0
|
||||
ADAPTIVE = 1
|
||||
|
||||
# All Palette items
|
||||
WEB: Literal[0]
|
||||
ADAPTIVE: Literal[1]
|
||||
|
||||
class Quantize(IntEnum):
|
||||
MEDIANCUT: Literal[0]
|
||||
MAXCOVERAGE: Literal[1]
|
||||
FASTOCTREE: Literal[2]
|
||||
LIBIMAGEQUANT: Literal[3]
|
||||
MEDIANCUT = 0
|
||||
MAXCOVERAGE = 1
|
||||
FASTOCTREE = 2
|
||||
LIBIMAGEQUANT = 3
|
||||
|
||||
# All Quantize items
|
||||
MEDIANCUT: Literal[0]
|
||||
|
||||
@@ -9,15 +9,15 @@ VERSION: str
|
||||
core: Incomplete
|
||||
|
||||
class Intent(IntEnum):
|
||||
PERCEPTUAL: int
|
||||
RELATIVE_COLORIMETRIC: int
|
||||
SATURATION: int
|
||||
ABSOLUTE_COLORIMETRIC: int
|
||||
PERCEPTUAL = 0
|
||||
RELATIVE_COLORIMETRIC = 1
|
||||
SATURATION = 2
|
||||
ABSOLUTE_COLORIMETRIC = 3
|
||||
|
||||
class Direction(IntEnum):
|
||||
INPUT: int
|
||||
OUTPUT: int
|
||||
PROOF: int
|
||||
INPUT = 0
|
||||
OUTPUT = 1
|
||||
PROOF = 2
|
||||
|
||||
FLAGS: Incomplete
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ from typing import Final, Literal, Protocol
|
||||
from PIL.Image import Transpose
|
||||
|
||||
class Layout(IntEnum):
|
||||
BASIC: Literal[0]
|
||||
RAQM: Literal[1]
|
||||
BASIC = 0
|
||||
RAQM = 1
|
||||
|
||||
MAX_STRING_LENGTH: Final[int] = 1_000_000
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@ MAX_TEXT_CHUNK: Incomplete
|
||||
MAX_TEXT_MEMORY: Incomplete
|
||||
|
||||
class Disposal(IntEnum):
|
||||
OP_NONE: int
|
||||
OP_BACKGROUND: int
|
||||
OP_PREVIOUS: int
|
||||
OP_NONE = 0
|
||||
OP_BACKGROUND = 1
|
||||
OP_PREVIOUS = 2
|
||||
|
||||
class Blend(IntEnum):
|
||||
OP_SOURCE: int
|
||||
OP_OVER: int
|
||||
OP_SOURCE = 0
|
||||
OP_OVER = 1
|
||||
|
||||
class ChunkStream:
|
||||
fp: Incomplete
|
||||
|
||||
@@ -10,6 +10,6 @@ class Reservoir:
|
||||
def TTL(self): ...
|
||||
|
||||
class ReservoirDecision(Enum):
|
||||
TAKE: str
|
||||
BORROW: str
|
||||
NO: str
|
||||
TAKE = "take"
|
||||
BORROW = "borrow"
|
||||
NO = "no"
|
||||
|
||||
@@ -5,8 +5,8 @@ from typing_extensions import Self
|
||||
from .syntax import Name
|
||||
|
||||
class SignatureFlag(IntEnum):
|
||||
SIGNATURES_EXIST: int
|
||||
APPEND_ONLY: int
|
||||
SIGNATURES_EXIST = 1
|
||||
APPEND_ONLY = 2
|
||||
|
||||
class CoerciveEnum(Enum):
|
||||
@classmethod
|
||||
@@ -21,55 +21,55 @@ class CoerciveIntFlag(IntFlag):
|
||||
def coerce(cls, value: Self | str | int) -> Self: ...
|
||||
|
||||
class WrapMode(CoerciveEnum):
|
||||
WORD: str
|
||||
CHAR: str
|
||||
WORD = "WORD"
|
||||
CHAR = "CHAR"
|
||||
|
||||
class CharVPos(CoerciveEnum):
|
||||
SUP: str
|
||||
SUB: str
|
||||
NOM: str
|
||||
DENOM: str
|
||||
LINE: str
|
||||
SUP = "SUP"
|
||||
SUB = "SUB"
|
||||
NOM = "NOM"
|
||||
DENOM = "DENOM"
|
||||
LINE = "LINE"
|
||||
|
||||
class Align(CoerciveEnum):
|
||||
C: str
|
||||
X: str
|
||||
L: str
|
||||
R: str
|
||||
J: str
|
||||
C = "CENTER"
|
||||
X = "X_CENTER"
|
||||
L = "LEFT"
|
||||
R = "RIGHT"
|
||||
J = "JUSTIFY"
|
||||
|
||||
class VAlign(CoerciveEnum):
|
||||
M: str
|
||||
T: str
|
||||
B: str
|
||||
M = "MIDDLE"
|
||||
T = "TOP"
|
||||
B = "BOTTOM"
|
||||
|
||||
class TextEmphasis(CoerciveIntFlag):
|
||||
B: int
|
||||
I: int
|
||||
U: int
|
||||
B = 1
|
||||
I = 2
|
||||
U = 4
|
||||
|
||||
@property
|
||||
def style(self) -> str: ...
|
||||
|
||||
class MethodReturnValue(CoerciveIntFlag):
|
||||
PAGE_BREAK: int
|
||||
LINES: int
|
||||
HEIGHT: int
|
||||
PAGE_BREAK = 1
|
||||
LINES = 2
|
||||
HEIGHT = 4
|
||||
|
||||
class TableBordersLayout(CoerciveEnum):
|
||||
ALL: str
|
||||
NONE: str
|
||||
INTERNAL: str
|
||||
MINIMAL: str
|
||||
HORIZONTAL_LINES: str
|
||||
NO_HORIZONTAL_LINES: str
|
||||
SINGLE_TOP_LINE: str
|
||||
ALL = "ALL"
|
||||
NONE = "NONE"
|
||||
INTERNAL = "INTERNAL"
|
||||
MINIMAL = "MINIMAL"
|
||||
HORIZONTAL_LINES = "HORIZONTAL_LINES"
|
||||
NO_HORIZONTAL_LINES = "NO_HORIZONTAL_LINES"
|
||||
SINGLE_TOP_LINE = "SINGLE_TOP_LINE"
|
||||
|
||||
class TableCellFillMode(CoerciveEnum):
|
||||
NONE: str
|
||||
ALL: str
|
||||
ROWS: str
|
||||
COLUMNS: str
|
||||
NONE = "NONE"
|
||||
ALL = "ALL"
|
||||
ROWS = "ROWS"
|
||||
COLUMNS = "COLUMNS"
|
||||
|
||||
def should_fill_cell(self, i: int, j: int) -> bool: ...
|
||||
|
||||
@@ -78,9 +78,9 @@ class TableSpan(CoerciveEnum):
|
||||
COL: Literal["COL"]
|
||||
|
||||
class RenderStyle(CoerciveEnum):
|
||||
D: str
|
||||
F: str
|
||||
DF: str
|
||||
D = "DRAW"
|
||||
F = "FILL"
|
||||
DF = "DRAW_FILL"
|
||||
@property
|
||||
def operator(self) -> str: ...
|
||||
@property
|
||||
@@ -89,173 +89,173 @@ class RenderStyle(CoerciveEnum):
|
||||
def is_fill(self) -> bool: ...
|
||||
|
||||
class TextMode(CoerciveIntEnum):
|
||||
FILL: int
|
||||
STROKE: int
|
||||
FILL_STROKE: int
|
||||
INVISIBLE: int
|
||||
FILL_CLIP: int
|
||||
STROKE_CLIP: int
|
||||
FILL_STROKE_CLIP: int
|
||||
CLIP: int
|
||||
FILL = 0
|
||||
STROKE = 1
|
||||
FILL_STROKE = 2
|
||||
INVISIBLE = 3
|
||||
FILL_CLIP = 4
|
||||
STROKE_CLIP = 5
|
||||
FILL_STROKE_CLIP = 6
|
||||
CLIP = 7
|
||||
|
||||
class XPos(CoerciveEnum):
|
||||
LEFT: str
|
||||
RIGHT: str
|
||||
START: str
|
||||
END: str
|
||||
WCONT: str
|
||||
CENTER: str
|
||||
LMARGIN: str
|
||||
RMARGIN: str
|
||||
LEFT = "LEFT"
|
||||
RIGHT = "RIGHT"
|
||||
START = "START"
|
||||
END = "END"
|
||||
WCONT = "WCONT"
|
||||
CENTER = "CENTER"
|
||||
LMARGIN = "LMARGIN"
|
||||
RMARGIN = "RMARGIN"
|
||||
|
||||
class YPos(CoerciveEnum):
|
||||
TOP: str
|
||||
LAST: str
|
||||
NEXT: str
|
||||
TMARGIN: str
|
||||
BMARGIN: str
|
||||
TOP = "TOP"
|
||||
LAST = "LAST"
|
||||
NEXT = "NEXT"
|
||||
TMARGIN = "TMARGIN"
|
||||
BMARGIN = "BMARGIN"
|
||||
|
||||
class Angle(CoerciveIntEnum):
|
||||
NORTH: int
|
||||
EAST: int
|
||||
SOUTH: int
|
||||
WEST: int
|
||||
NORTHEAST: int
|
||||
SOUTHEAST: int
|
||||
SOUTHWEST: int
|
||||
NORTHWEST: int
|
||||
NORTH = 90
|
||||
EAST = 0
|
||||
SOUTH = 270
|
||||
WEST = 180
|
||||
NORTHEAST = 45
|
||||
SOUTHEAST = 315
|
||||
SOUTHWEST = 225
|
||||
NORTHWEST = 135
|
||||
|
||||
class PageLayout(CoerciveEnum):
|
||||
SINGLE_PAGE: Name
|
||||
ONE_COLUMN: Name
|
||||
TWO_COLUMN_LEFT: Name
|
||||
TWO_COLUMN_RIGHT: Name
|
||||
TWO_PAGE_LEFT: Name
|
||||
TWO_PAGE_RIGHT: Name
|
||||
SINGLE_PAGE = Name("SinglePage")
|
||||
ONE_COLUMN = Name("OneColumn")
|
||||
TWO_COLUMN_LEFT = Name("TwoColumnLeft")
|
||||
TWO_COLUMN_RIGHT = Name("TwoColumnRight")
|
||||
TWO_PAGE_LEFT = Name("TwoPageLeft")
|
||||
TWO_PAGE_RIGHT = Name("TwoPageRight")
|
||||
|
||||
class PageMode(CoerciveEnum):
|
||||
USE_NONE: Name
|
||||
USE_OUTLINES: Name
|
||||
USE_THUMBS: Name
|
||||
FULL_SCREEN: Name
|
||||
USE_OC: Name
|
||||
USE_ATTACHMENTS: Name
|
||||
USE_NONE = Name("UseNone")
|
||||
USE_OUTLINES = Name("UseOutlines")
|
||||
USE_THUMBS = Name("UseThumbs")
|
||||
FULL_SCREEN = Name("FullScreen")
|
||||
USE_OC = Name("UseOC")
|
||||
USE_ATTACHMENTS = Name("UseAttachments")
|
||||
|
||||
class TextMarkupType(CoerciveEnum):
|
||||
HIGHLIGHT: Name
|
||||
UNDERLINE: Name
|
||||
SQUIGGLY: Name
|
||||
STRIKE_OUT: Name
|
||||
HIGHLIGHT = Name("Highlight")
|
||||
UNDERLINE = Name("Underline")
|
||||
SQUIGGLY = Name("Squiggly")
|
||||
STRIKE_OUT = Name("StrikeOut")
|
||||
|
||||
class BlendMode(CoerciveEnum):
|
||||
NORMAL: Name
|
||||
MULTIPLY: Name
|
||||
SCREEN: Name
|
||||
OVERLAY: Name
|
||||
DARKEN: Name
|
||||
LIGHTEN: Name
|
||||
COLOR_DODGE: Name
|
||||
COLOR_BURN: Name
|
||||
HARD_LIGHT: Name
|
||||
SOFT_LIGHT: Name
|
||||
DIFFERENCE: Name
|
||||
EXCLUSION: Name
|
||||
HUE: Name
|
||||
SATURATION: Name
|
||||
COLOR: Name
|
||||
LUMINOSITY: Name
|
||||
NORMAL = Name("Normal")
|
||||
MULTIPLY = Name("Multiply")
|
||||
SCREEN = Name("Screen")
|
||||
OVERLAY = Name("Overlay")
|
||||
DARKEN = Name("Darken")
|
||||
LIGHTEN = Name("Lighten")
|
||||
COLOR_DODGE = Name("ColorDodge")
|
||||
COLOR_BURN = Name("ColorBurn")
|
||||
HARD_LIGHT = Name("HardLight")
|
||||
SOFT_LIGHT = Name("SoftLight")
|
||||
DIFFERENCE = Name("Difference")
|
||||
EXCLUSION = Name("Exclusion")
|
||||
HUE = Name("Hue")
|
||||
SATURATION = Name("Saturation")
|
||||
COLOR = Name("Color")
|
||||
LUMINOSITY = Name("Luminosity")
|
||||
|
||||
class AnnotationFlag(CoerciveIntEnum):
|
||||
INVISIBLE: int
|
||||
HIDDEN: int
|
||||
PRINT: int
|
||||
NO_ZOOM: int
|
||||
NO_ROTATE: int
|
||||
NO_VIEW: int
|
||||
READ_ONLY: int
|
||||
LOCKED: int
|
||||
TOGGLE_NO_VIEW: int
|
||||
LOCKED_CONTENTS: int
|
||||
INVISIBLE = 1
|
||||
HIDDEN = 2
|
||||
PRINT = 4
|
||||
NO_ZOOM = 8
|
||||
NO_ROTATE = 16
|
||||
NO_VIEW = 32
|
||||
READ_ONLY = 64
|
||||
LOCKED = 128
|
||||
TOGGLE_NO_VIEW = 256
|
||||
LOCKED_CONTENTS = 512
|
||||
|
||||
class AnnotationName(CoerciveEnum):
|
||||
NOTE: Name
|
||||
COMMENT: Name
|
||||
HELP: Name
|
||||
PARAGRAPH: Name
|
||||
NEW_PARAGRAPH: Name
|
||||
INSERT: Name
|
||||
NOTE = Name("Note")
|
||||
COMMENT = Name("Comment")
|
||||
HELP = Name("Help")
|
||||
PARAGRAPH = Name("Paragraph")
|
||||
NEW_PARAGRAPH = Name("NewParagraph")
|
||||
INSERT = Name("Insert")
|
||||
|
||||
class FileAttachmentAnnotationName(CoerciveEnum):
|
||||
PUSH_PIN: Name
|
||||
GRAPH_PUSH_PIN: Name
|
||||
PAPERCLIP_TAG: Name
|
||||
PUSH_PIN = Name("PushPin")
|
||||
GRAPH_PUSH_PIN = Name("GraphPushPin")
|
||||
PAPERCLIP_TAG = Name("PaperclipTag")
|
||||
|
||||
class IntersectionRule(CoerciveEnum):
|
||||
NONZERO: str
|
||||
EVENODD: str
|
||||
NONZERO = "nonzero"
|
||||
EVENODD = "evenodd"
|
||||
|
||||
class PathPaintRule(CoerciveEnum):
|
||||
STROKE: str
|
||||
FILL_NONZERO: str
|
||||
FILL_EVENODD: str
|
||||
STROKE_FILL_NONZERO: str
|
||||
STROKE_FILL_EVENODD: str
|
||||
DONT_PAINT: str
|
||||
AUTO: str
|
||||
STROKE = "S"
|
||||
FILL_NONZERO = "f"
|
||||
FILL_EVENODD = "f*"
|
||||
STROKE_FILL_NONZERO = "B"
|
||||
STROKE_FILL_EVENODD = "B*"
|
||||
DONT_PAINT = "n"
|
||||
AUTO = "auto"
|
||||
|
||||
class ClippingPathIntersectionRule(CoerciveEnum):
|
||||
NONZERO: str
|
||||
EVENODD: str
|
||||
NONZERO = "W"
|
||||
EVENODD = "W*"
|
||||
|
||||
class StrokeCapStyle(CoerciveIntEnum):
|
||||
BUTT: int
|
||||
ROUND: int
|
||||
SQUARE: int
|
||||
BUTT = 0
|
||||
ROUND = 1
|
||||
SQUARE = 2
|
||||
|
||||
class StrokeJoinStyle(CoerciveIntEnum):
|
||||
MITER: int
|
||||
ROUND: int
|
||||
BEVEL: int
|
||||
MITER = 0
|
||||
ROUND = 1
|
||||
BEVEL = 2
|
||||
|
||||
class PDFStyleKeys(Enum):
|
||||
FILL_ALPHA: Name
|
||||
BLEND_MODE: Name
|
||||
STROKE_ALPHA: Name
|
||||
STROKE_ADJUSTMENT: Name
|
||||
STROKE_WIDTH: Name
|
||||
STROKE_CAP_STYLE: Name
|
||||
STROKE_JOIN_STYLE: Name
|
||||
STROKE_MITER_LIMIT: Name
|
||||
STROKE_DASH_PATTERN: Name
|
||||
FILL_ALPHA = Name("ca")
|
||||
BLEND_MODE = Name("BM")
|
||||
STROKE_ALPHA = Name("CA")
|
||||
STROKE_ADJUSTMENT = Name("SA")
|
||||
STROKE_WIDTH = Name("LW")
|
||||
STROKE_CAP_STYLE = Name("LC")
|
||||
STROKE_JOIN_STYLE = Name("LJ")
|
||||
STROKE_MITER_LIMIT = Name("ML")
|
||||
STROKE_DASH_PATTERN = Name("D")
|
||||
|
||||
class Corner(CoerciveEnum):
|
||||
TOP_RIGHT: str
|
||||
TOP_LEFT: str
|
||||
BOTTOM_RIGHT: str
|
||||
BOTTOM_LEFT: str
|
||||
TOP_RIGHT = "TOP_RIGHT"
|
||||
TOP_LEFT = "TOP_LEFT"
|
||||
BOTTOM_RIGHT = "BOTTOM_RIGHT"
|
||||
BOTTOM_LEFT = "BOTTOM_LEFT"
|
||||
|
||||
class FontDescriptorFlags(Flag):
|
||||
FIXED_PITCH: int
|
||||
SYMBOLIC: int
|
||||
ITALIC: int
|
||||
FORCE_BOLD: int
|
||||
FIXED_PITCH = 1
|
||||
SYMBOLIC = 4
|
||||
ITALIC = 64
|
||||
FORCE_BOLD = 262144
|
||||
|
||||
class AccessPermission(IntFlag):
|
||||
PRINT_LOW_RES: int
|
||||
MODIFY: int
|
||||
COPY: int
|
||||
ANNOTATION: int
|
||||
FILL_FORMS: int
|
||||
COPY_FOR_ACCESSIBILITY: int
|
||||
ASSEMBLE: int
|
||||
PRINT_HIGH_RES: int
|
||||
PRINT_LOW_RES = 4
|
||||
MODIFY = 8
|
||||
COPY = 16
|
||||
ANNOTATION = 32
|
||||
FILL_FORMS = 256
|
||||
COPY_FOR_ACCESSIBILITY = 512
|
||||
ASSEMBLE = 1024
|
||||
PRINT_HIGH_RES = 2048
|
||||
@classmethod
|
||||
def all(cls) -> int: ...
|
||||
@classmethod
|
||||
def none(cls) -> Literal[0]: ...
|
||||
|
||||
class EncryptionMethod(Enum):
|
||||
NO_ENCRYPTION: int
|
||||
RC4: int
|
||||
AES_128: int
|
||||
AES_256: int
|
||||
NO_ENCRYPTION = 0
|
||||
RC4 = 1
|
||||
AES_128 = 2
|
||||
AES_256 = 3
|
||||
|
||||
@@ -19,13 +19,13 @@ class FluxQueryException(Exception):
|
||||
class FluxCsvParserException(Exception): ...
|
||||
|
||||
class FluxSerializationMode(Enum):
|
||||
tables: int
|
||||
stream: int
|
||||
dataFrame: int
|
||||
tables = 1
|
||||
stream = 2
|
||||
dataFrame = 3
|
||||
|
||||
class FluxResponseMetadataMode(Enum):
|
||||
full: int
|
||||
only_names: int
|
||||
full = 1
|
||||
only_names = 2
|
||||
|
||||
class _FluxCsvParserMetadata:
|
||||
table_index: int
|
||||
|
||||
@@ -17,9 +17,9 @@ _Observable: TypeAlias = Any # reactivex.Observable
|
||||
logger: logging.Logger
|
||||
|
||||
class WriteType(Enum):
|
||||
batching: int
|
||||
asynchronous: int
|
||||
synchronous: int
|
||||
batching = 1
|
||||
asynchronous = 2
|
||||
synchronous = 3
|
||||
|
||||
class WriteOptions:
|
||||
write_type: WriteType
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
class DeliveryMode(Enum):
|
||||
Transient: int
|
||||
Persistent: int
|
||||
Transient = 1
|
||||
Persistent = 2
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from enum import Enum
|
||||
|
||||
class ExchangeType(Enum):
|
||||
direct: str
|
||||
fanout: str
|
||||
headers: str
|
||||
topic: str
|
||||
direct = "direct"
|
||||
fanout = "fanout"
|
||||
headers = "headers"
|
||||
topic = "topic"
|
||||
|
||||
@@ -48,16 +48,16 @@ NIC_DUPLEX_HALF: int
|
||||
NIC_DUPLEX_UNKNOWN: int
|
||||
|
||||
class NicDuplex(enum.IntEnum):
|
||||
NIC_DUPLEX_FULL: int
|
||||
NIC_DUPLEX_HALF: int
|
||||
NIC_DUPLEX_UNKNOWN: int
|
||||
NIC_DUPLEX_FULL = 2
|
||||
NIC_DUPLEX_HALF = 1
|
||||
NIC_DUPLEX_UNKNOWN = 0
|
||||
|
||||
POWER_TIME_UNKNOWN: int
|
||||
POWER_TIME_UNLIMITED: int
|
||||
|
||||
class BatteryTime(enum.IntEnum):
|
||||
POWER_TIME_UNKNOWN: int
|
||||
POWER_TIME_UNLIMITED: int
|
||||
POWER_TIME_UNKNOWN = -1
|
||||
POWER_TIME_UNLIMITED = -2
|
||||
|
||||
ENCODING: str
|
||||
ENCODING_ERRS: str
|
||||
|
||||
@@ -36,10 +36,10 @@ IOPRIO_CLASS_BE: int
|
||||
IOPRIO_CLASS_IDLE: int
|
||||
|
||||
class IOPriority(enum.IntEnum):
|
||||
IOPRIO_CLASS_NONE: int
|
||||
IOPRIO_CLASS_RT: int
|
||||
IOPRIO_CLASS_BE: int
|
||||
IOPRIO_CLASS_IDLE: int
|
||||
IOPRIO_CLASS_NONE = 0
|
||||
IOPRIO_CLASS_RT = 1
|
||||
IOPRIO_CLASS_BE = 2
|
||||
IOPRIO_CLASS_IDLE = 3
|
||||
|
||||
PROC_STATUSES: Any
|
||||
TCP_STATUSES: Any
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
ABOVE_NORMAL_PRIORITY_CLASS: int
|
||||
BELOW_NORMAL_PRIORITY_CLASS: int
|
||||
from typing import Final
|
||||
|
||||
ABOVE_NORMAL_PRIORITY_CLASS: Final = 32768
|
||||
BELOW_NORMAL_PRIORITY_CLASS: Final = 16384
|
||||
ERROR_ACCESS_DENIED: int
|
||||
ERROR_INVALID_NAME: int
|
||||
ERROR_PRIVILEGE_NOT_HELD: int
|
||||
ERROR_SERVICE_DOES_NOT_EXIST: int
|
||||
HIGH_PRIORITY_CLASS: int
|
||||
IDLE_PRIORITY_CLASS: int
|
||||
HIGH_PRIORITY_CLASS: Final = 128
|
||||
IDLE_PRIORITY_CLASS: Final = 64
|
||||
INFINITE: int
|
||||
MIB_TCP_STATE_CLOSED: int
|
||||
MIB_TCP_STATE_CLOSE_WAIT: int
|
||||
@@ -19,9 +21,9 @@ MIB_TCP_STATE_LISTEN: int
|
||||
MIB_TCP_STATE_SYN_RCVD: int
|
||||
MIB_TCP_STATE_SYN_SENT: int
|
||||
MIB_TCP_STATE_TIME_WAIT: int
|
||||
NORMAL_PRIORITY_CLASS: int
|
||||
NORMAL_PRIORITY_CLASS: Final = 32
|
||||
PSUTIL_CONN_NONE: int
|
||||
REALTIME_PRIORITY_CLASS: int
|
||||
REALTIME_PRIORITY_CLASS: Final = 256
|
||||
WINDOWS_10: int
|
||||
WINDOWS_7: int
|
||||
WINDOWS_8: int
|
||||
|
||||
@@ -36,12 +36,12 @@ AddressFamily: Any
|
||||
TCP_STATUSES: Any
|
||||
|
||||
class Priority(enum.IntEnum):
|
||||
ABOVE_NORMAL_PRIORITY_CLASS: Any
|
||||
BELOW_NORMAL_PRIORITY_CLASS: Any
|
||||
HIGH_PRIORITY_CLASS: Any
|
||||
IDLE_PRIORITY_CLASS: Any
|
||||
NORMAL_PRIORITY_CLASS: Any
|
||||
REALTIME_PRIORITY_CLASS: Any
|
||||
ABOVE_NORMAL_PRIORITY_CLASS = ABOVE_NORMAL_PRIORITY_CLASS
|
||||
BELOW_NORMAL_PRIORITY_CLASS = BELOW_NORMAL_PRIORITY_CLASS
|
||||
HIGH_PRIORITY_CLASS = HIGH_PRIORITY_CLASS
|
||||
IDLE_PRIORITY_CLASS = IDLE_PRIORITY_CLASS
|
||||
NORMAL_PRIORITY_CLASS = NORMAL_PRIORITY_CLASS
|
||||
REALTIME_PRIORITY_CLASS = REALTIME_PRIORITY_CLASS
|
||||
|
||||
IOPRIO_VERYLOW: int
|
||||
IOPRIO_LOW: int
|
||||
@@ -49,10 +49,10 @@ IOPRIO_NORMAL: int
|
||||
IOPRIO_HIGH: int
|
||||
|
||||
class IOPriority(enum.IntEnum):
|
||||
IOPRIO_VERYLOW: int
|
||||
IOPRIO_LOW: int
|
||||
IOPRIO_NORMAL: int
|
||||
IOPRIO_HIGH: int
|
||||
IOPRIO_VERYLOW = 0
|
||||
IOPRIO_LOW = 1
|
||||
IOPRIO_NORMAL = 2
|
||||
IOPRIO_HIGH = 3
|
||||
|
||||
pinfo_map: Any
|
||||
|
||||
|
||||
@@ -25,71 +25,71 @@ class KeyCode:
|
||||
def from_dead(cls, char: str, **kwargs: Any) -> Self: ...
|
||||
|
||||
class Key(enum.Enum):
|
||||
alt: int
|
||||
alt_l: int
|
||||
alt_r: int
|
||||
alt_gr: int
|
||||
backspace: int
|
||||
caps_lock: int
|
||||
cmd: int
|
||||
cmd_l: int
|
||||
cmd_r: int
|
||||
ctrl: int
|
||||
ctrl_l: int
|
||||
ctrl_r: int
|
||||
delete: int
|
||||
down: int
|
||||
end: int
|
||||
enter: int
|
||||
esc: int
|
||||
f1: int
|
||||
f2: int
|
||||
f3: int
|
||||
f4: int
|
||||
f5: int
|
||||
f6: int
|
||||
f7: int
|
||||
f8: int
|
||||
f9: int
|
||||
f10: int
|
||||
f11: int
|
||||
f12: int
|
||||
f13: int
|
||||
f14: int
|
||||
f15: int
|
||||
f16: int
|
||||
f17: int
|
||||
f18: int
|
||||
f19: int
|
||||
f20: int
|
||||
alt = 0
|
||||
alt_l = alt
|
||||
alt_r = alt
|
||||
alt_gr = alt
|
||||
backspace = alt
|
||||
caps_lock = alt
|
||||
cmd = alt
|
||||
cmd_l = alt
|
||||
cmd_r = alt
|
||||
ctrl = alt
|
||||
ctrl_l = alt
|
||||
ctrl_r = alt
|
||||
delete = alt
|
||||
down = alt
|
||||
end = alt
|
||||
enter = alt
|
||||
esc = alt
|
||||
f1 = alt
|
||||
f2 = alt
|
||||
f3 = alt
|
||||
f4 = alt
|
||||
f5 = alt
|
||||
f6 = alt
|
||||
f7 = alt
|
||||
f8 = alt
|
||||
f9 = alt
|
||||
f10 = alt
|
||||
f11 = alt
|
||||
f12 = alt
|
||||
f13 = alt
|
||||
f14 = alt
|
||||
f15 = alt
|
||||
f16 = alt
|
||||
f17 = alt
|
||||
f18 = alt
|
||||
f19 = alt
|
||||
f20 = alt
|
||||
if sys.platform == "win32":
|
||||
f21: int
|
||||
f22: int
|
||||
f23: int
|
||||
f24: int
|
||||
home: int
|
||||
left: int
|
||||
page_down: int
|
||||
page_up: int
|
||||
right: int
|
||||
shift: int
|
||||
shift_l: int
|
||||
shift_r: int
|
||||
space: int
|
||||
tab: int
|
||||
up: int
|
||||
media_play_pause: int
|
||||
media_volume_mute: int
|
||||
media_volume_down: int
|
||||
media_volume_up: int
|
||||
media_previous: int
|
||||
media_next: int
|
||||
insert: int
|
||||
menu: int
|
||||
num_lock: int
|
||||
pause: int
|
||||
print_screen: int
|
||||
scroll_lock: int
|
||||
f21 = alt
|
||||
f22 = alt
|
||||
f23 = alt
|
||||
f24 = alt
|
||||
home = alt
|
||||
left = alt
|
||||
page_down = alt
|
||||
page_up = alt
|
||||
right = alt
|
||||
shift = alt
|
||||
shift_l = alt
|
||||
shift_r = alt
|
||||
space = alt
|
||||
tab = alt
|
||||
up = alt
|
||||
media_play_pause = alt
|
||||
media_volume_mute = alt
|
||||
media_volume_down = alt
|
||||
media_volume_up = alt
|
||||
media_previous = alt
|
||||
media_next = alt
|
||||
insert = alt
|
||||
menu = alt
|
||||
num_lock = alt
|
||||
pause = alt
|
||||
print_screen = alt
|
||||
scroll_lock = alt
|
||||
|
||||
class Controller:
|
||||
_KeyCode: ClassVar[type[KeyCode]] # undocumented
|
||||
|
||||
@@ -8,41 +8,41 @@ from typing_extensions import Self
|
||||
from pynput._util import AbstractListener
|
||||
|
||||
class Button(enum.Enum):
|
||||
unknown: int
|
||||
left: int
|
||||
middle: int
|
||||
right: int
|
||||
unknown = 0
|
||||
left = 1
|
||||
middle = 2
|
||||
right = 3
|
||||
if sys.platform == "linux":
|
||||
button8: int
|
||||
button9: int
|
||||
button10: int
|
||||
button11: int
|
||||
button12: int
|
||||
button13: int
|
||||
button14: int
|
||||
button15: int
|
||||
button16: int
|
||||
button17: int
|
||||
button18: int
|
||||
button19: int
|
||||
button20: int
|
||||
button21: int
|
||||
button22: int
|
||||
button23: int
|
||||
button24: int
|
||||
button25: int
|
||||
button26: int
|
||||
button27: int
|
||||
button28: int
|
||||
button29: int
|
||||
button30: int
|
||||
scroll_down: int
|
||||
scroll_left: int
|
||||
scroll_right: int
|
||||
scroll_up: int
|
||||
button8 = 8
|
||||
button9 = 9
|
||||
button10 = 10
|
||||
button11 = 11
|
||||
button12 = 12
|
||||
button13 = 13
|
||||
button14 = 14
|
||||
button15 = 15
|
||||
button16 = 16
|
||||
button17 = 17
|
||||
button18 = 18
|
||||
button19 = 19
|
||||
button20 = 20
|
||||
button21 = 21
|
||||
button22 = 22
|
||||
button23 = 23
|
||||
button24 = 24
|
||||
button25 = 25
|
||||
button26 = 26
|
||||
button27 = 27
|
||||
button28 = 28
|
||||
button29 = 29
|
||||
button30 = 30
|
||||
scroll_down = 5
|
||||
scroll_left = 6
|
||||
scroll_right = 7
|
||||
scroll_up = 4
|
||||
if sys.platform == "win32":
|
||||
x1: int
|
||||
x2: int
|
||||
x1 = 0 # Value unknown
|
||||
x2 = 0 # Value unknown
|
||||
|
||||
class Controller:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -24,7 +24,7 @@ SYM_EMPTY: Final[bytes]
|
||||
SERVER_CLOSED_CONNECTION_ERROR: Final[str]
|
||||
|
||||
class _Sentinel(enum.Enum):
|
||||
sentinel: object
|
||||
sentinel = object()
|
||||
|
||||
SENTINEL: Final[object]
|
||||
MODULE_LOAD_ERROR: Final[str]
|
||||
|
||||
@@ -9,40 +9,40 @@ class error(Exception):
|
||||
def __init__(self, message: str, pattern: AnyStr | None = None, pos: int | None = None) -> None: ...
|
||||
|
||||
class RegexFlag(enum.IntFlag):
|
||||
A: int
|
||||
ASCII: int
|
||||
B: int
|
||||
BESTMATCH: int
|
||||
D: int
|
||||
DEBUG: int
|
||||
E: int
|
||||
ENHANCEMATCH: int
|
||||
F: int
|
||||
FULLCASE: int
|
||||
I: int
|
||||
IGNORECASE: int
|
||||
L: int
|
||||
LOCALE: int
|
||||
M: int
|
||||
MULTILINE: int
|
||||
P: int
|
||||
POSIX: int
|
||||
R: int
|
||||
REVERSE: int
|
||||
T: int
|
||||
TEMPLATE: int
|
||||
S: int
|
||||
DOTALL: int
|
||||
U: int
|
||||
UNICODE: int
|
||||
V0: int
|
||||
VERSION0: int
|
||||
V1: int
|
||||
VERSION1: int
|
||||
W: int
|
||||
WORD: int
|
||||
X: int
|
||||
VERBOSE: int
|
||||
A = 0x80
|
||||
ASCII = A
|
||||
B = 0x1000
|
||||
BESTMATCH = B
|
||||
D = 0x200
|
||||
DEBUG = D
|
||||
E = 0x8000
|
||||
ENHANCEMATCH = E
|
||||
F = 0x4000
|
||||
FULLCASE = F
|
||||
I = 0x2
|
||||
IGNORECASE = I
|
||||
L = 0x4
|
||||
LOCALE = L
|
||||
M = 0x8
|
||||
MULTILINE = M
|
||||
P = 0x10000
|
||||
POSIX = P
|
||||
R = 0x400
|
||||
REVERSE = R
|
||||
T = 0x1
|
||||
TEMPLATE = T
|
||||
S = 0x10
|
||||
DOTALL = S
|
||||
U = 0x20
|
||||
UNICODE = U
|
||||
V0 = 0x2000
|
||||
VERSION0 = V0
|
||||
V1 = 0x100
|
||||
VERSION1 = V1
|
||||
W = 0x800
|
||||
WORD = W
|
||||
X = 0x40
|
||||
VERBOSE = X
|
||||
|
||||
A: int
|
||||
ASCII: int
|
||||
|
||||
@@ -13,9 +13,9 @@ from ..warnings import SetuptoolsWarning
|
||||
_WheelFile: TypeAlias = Incomplete
|
||||
|
||||
class _EditableMode(Enum):
|
||||
STRICT: str
|
||||
LENIENT: str
|
||||
COMPAT: str
|
||||
STRICT = "strict"
|
||||
LENIENT = "lenient"
|
||||
COMPAT = "compat"
|
||||
@classmethod
|
||||
def convert(cls, mode: str | None) -> _EditableMode: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user