From 381c74d4d36de87c6d454295e208884c09dfa41d Mon Sep 17 00:00:00 2001 From: jorenham Date: Wed, 1 Jan 2025 19:20:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B4=20appease=20mypy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scipy-stubs/io/wavfile.pyi | 535 +++++++++++++------------ scipy-stubs/special/cython_special.pyi | 2 +- 2 files changed, 269 insertions(+), 268 deletions(-) diff --git a/scipy-stubs/io/wavfile.pyi b/scipy-stubs/io/wavfile.pyi index 32aac4f9..26451dba 100644 --- a/scipy-stubs/io/wavfile.pyi +++ b/scipy-stubs/io/wavfile.pyi @@ -17,273 +17,274 @@ KNOWN_WAVE_FORMATS: set[WAVE_FORMAT] class WavFileWarning(UserWarning): ... class WAVE_FORMAT(IntEnum): - UNKNOWN: int - PCM: int - ADPCM: int - IEEE_FLOAT: int - VSELP: int - IBM_CVSD: int - ALAW: int - MULAW: int - DTS: int - DRM: int - WMAVOICE9: int - WMAVOICE10: int - OKI_ADPCM: int - DVI_ADPCM: int - IMA_ADPCM: int - MEDIASPACE_ADPCM: int - SIERRA_ADPCM: int - G723_ADPCM: int - DIGISTD: int - DIGIFIX: int - DIALOGIC_OKI_ADPCM: int - MEDIAVISION_ADPCM: int - CU_CODEC: int - HP_DYN_VOICE: int - YAMAHA_ADPCM: int - SONARC: int - DSPGROUP_TRUESPEECH: int - ECHOSC1: int - AUDIOFILE_AF36: int - APTX: int - AUDIOFILE_AF10: int - PROSODY_1612: int - LRC: int - DOLBY_AC2: int - GSM610: int - MSNAUDIO: int - ANTEX_ADPCME: int - CONTROL_RES_VQLPC: int - DIGIREAL: int - DIGIADPCM: int - CONTROL_RES_CR10: int - NMS_VBXADPCM: int - CS_IMAADPCM: int - ECHOSC3: int - ROCKWELL_ADPCM: int - ROCKWELL_DIGITALK: int - XEBEC: int - G721_ADPCM: int - G728_CELP: int - MSG723: int - INTEL_G723_1: int - INTEL_G729: int - SHARP_G726: int - MPEG: int - RT24: int - PAC: int - MPEGLAYER3: int - LUCENT_G723: int - CIRRUS: int - ESPCM: int - VOXWARE: int - CANOPUS_ATRAC: int - G726_ADPCM: int - G722_ADPCM: int - DSAT: int - DSAT_DISPLAY: int - VOXWARE_BYTE_ALIGNED: int - VOXWARE_AC8: int - VOXWARE_AC10: int - VOXWARE_AC16: int - VOXWARE_AC20: int - VOXWARE_RT24: int - VOXWARE_RT29: int - VOXWARE_RT29HW: int - VOXWARE_VR12: int - VOXWARE_VR18: int - VOXWARE_TQ40: int - VOXWARE_SC3: int - VOXWARE_SC3_1: int - SOFTSOUND: int - VOXWARE_TQ60: int - MSRT24: int - G729A: int - MVI_MVI2: int - DF_G726: int - DF_GSM610: int - ISIAUDIO: int - ONLIVE: int - MULTITUDE_FT_SX20: int - INFOCOM_ITS_G721_ADPCM: int - CONVEDIA_G729: int - CONGRUENCY: int - SBC24: int - DOLBY_AC3_SPDIF: int - MEDIASONIC_G723: int - PROSODY_8KBPS: int - ZYXEL_ADPCM: int - PHILIPS_LPCBB: int - PACKED: int - MALDEN_PHONYTALK: int - RACAL_RECORDER_GSM: int - RACAL_RECORDER_G720_A: int - RACAL_RECORDER_G723_1: int - RACAL_RECORDER_TETRA_ACELP: int - NEC_AAC: int - RAW_AAC1: int - RHETOREX_ADPCM: int - IRAT: int - VIVO_G723: int - VIVO_SIREN: int - PHILIPS_CELP: int - PHILIPS_GRUNDIG: int - DIGITAL_G723: int - SANYO_LD_ADPCM: int - SIPROLAB_ACEPLNET: int - SIPROLAB_ACELP4800: int - SIPROLAB_ACELP8V3: int - SIPROLAB_G729: int - SIPROLAB_G729A: int - SIPROLAB_KELVIN: int - VOICEAGE_AMR: int - G726ADPCM: int - DICTAPHONE_CELP68: int - DICTAPHONE_CELP54: int - QUALCOMM_PUREVOICE: int - QUALCOMM_HALFRATE: int - TUBGSM: int - MSAUDIO1: int - WMAUDIO2: int - WMAUDIO3: int - WMAUDIO_LOSSLESS: int - WMASPDIF: int - UNISYS_NAP_ADPCM: int - UNISYS_NAP_ULAW: int - UNISYS_NAP_ALAW: int - UNISYS_NAP_16K: int - SYCOM_ACM_SYC008: int - SYCOM_ACM_SYC701_G726L: int - SYCOM_ACM_SYC701_CELP54: int - SYCOM_ACM_SYC701_CELP68: int - KNOWLEDGE_ADVENTURE_ADPCM: int - FRAUNHOFER_IIS_MPEG2_AAC: int - DTS_DS: int - CREATIVE_ADPCM: int - CREATIVE_FASTSPEECH8: int - CREATIVE_FASTSPEECH10: int - UHER_ADPCM: int - ULEAD_DV_AUDIO: int - ULEAD_DV_AUDIO_1: int - QUARTERDECK: int - ILINK_VC: int - RAW_SPORT: int - ESST_AC3: int - GENERIC_PASSTHRU: int - IPI_HSX: int - IPI_RPELP: int - CS2: int - SONY_SCX: int - SONY_SCY: int - SONY_ATRAC3: int - SONY_SPC: int - TELUM_AUDIO: int - TELUM_IA_AUDIO: int - NORCOM_VOICE_SYSTEMS_ADPCM: int - FM_TOWNS_SND: int - MICRONAS: int - MICRONAS_CELP833: int - BTV_DIGITAL: int - INTEL_MUSIC_CODER: int - INDEO_AUDIO: int - QDESIGN_MUSIC: int - ON2_VP7_AUDIO: int - ON2_VP6_AUDIO: int - VME_VMPCM: int - TPC: int - LIGHTWAVE_LOSSLESS: int - OLIGSM: int - OLIADPCM: int - OLICELP: int - OLISBC: int - OLIOPR: int - LH_CODEC: int - LH_CODEC_CELP: int - LH_CODEC_SBC8: int - LH_CODEC_SBC12: int - LH_CODEC_SBC16: int - NORRIS: int - ISIAUDIO_2: int - SOUNDSPACE_MUSICOMPRESS: int - MPEG_ADTS_AAC: int - MPEG_RAW_AAC: int - MPEG_LOAS: int - NOKIA_MPEG_ADTS_AAC: int - NOKIA_MPEG_RAW_AAC: int - VODAFONE_MPEG_ADTS_AAC: int - VODAFONE_MPEG_RAW_AAC: int - MPEG_HEAAC: int - VOXWARE_RT24_SPEECH: int - SONICFOUNDRY_LOSSLESS: int - INNINGS_TELECOM_ADPCM: int - LUCENT_SX8300P: int - LUCENT_SX5363S: int - CUSEEME: int - NTCSOFT_ALF2CM_ACM: int - DVM: int - DTS2: int - MAKEAVIS: int - DIVIO_MPEG4_AAC: int - NOKIA_ADAPTIVE_MULTIRATE: int - DIVIO_G726: int - LEAD_SPEECH: int - LEAD_VORBIS: int - WAVPACK_AUDIO: int - OGG_VORBIS_MODE_1: int - OGG_VORBIS_MODE_2: int - OGG_VORBIS_MODE_3: int - OGG_VORBIS_MODE_1_PLUS: int - OGG_VORBIS_MODE_2_PLUS: int - OGG_VORBIS_MODE_3_PLUS: int - ALAC: int - OPUS: int - FAAD_AAC: int - AMR_NB: int - AMR_WB: int - AMR_WP: int - GSM_AMR_CBR: int - GSM_AMR_VBR_SID: int - COMVERSE_INFOSYS_G723_1: int - COMVERSE_INFOSYS_AVQSBC: int - COMVERSE_INFOSYS_SBC: int - SYMBOL_G729_A: int - VOICEAGE_AMR_WB: int - INGENIENT_G726: int - MPEG4_AAC: int - ENCORE_G726: int - ZOLL_ASAO: int - SPEEX_VOICE: int - VIANIX_MASC: int - WM9_SPECTRUM_ANALYZER: int - WMF_SPECTRUM_ANAYZER: int - GSM_610: int - GSM_620: int - GSM_660: int - GSM_690: int - GSM_ADAPTIVE_MULTIRATE_WB: int - POLYCOM_G722: int - POLYCOM_G728: int - POLYCOM_G729_A: int - POLYCOM_SIREN: int - GLOBAL_IP_ILBC: int - RADIOTIME_TIME_SHIFT_RADIO: int - NICE_ACA: int - NICE_ADPCM: int - VOCORD_G721: int - VOCORD_G726: int - VOCORD_G722_1: int - VOCORD_G728: int - VOCORD_G729: int - VOCORD_G729_A: int - VOCORD_G723_1: int - VOCORD_LBC: int - NICE_G728: int - FRACE_TELECOM_G729: int - CODIAN: int - FLAC: int - EXTENSIBLE: int - DEVELOPMENT: int + UNKNOWN = 0x0000 + PCM = 0x0001 + ADPCM = 0x0002 + IEEE_FLOAT = 0x0003 + VSELP = 0x0004 + IBM_CVSD = 0x0005 + ALAW = 0x0006 + MULAW = 0x0007 + DTS = 0x0008 + DRM = 0x0009 + WMAVOICE9 = 0x000A + WMAVOICE10 = 0x000B + OKI_ADPCM = 0x0010 + DVI_ADPCM = 0x0011 + IMA_ADPCM = 0x0011 # Duplicate + MEDIASPACE_ADPCM = 0x0012 + SIERRA_ADPCM = 0x0013 + G723_ADPCM = 0x0014 + DIGISTD = 0x0015 + DIGIFIX = 0x0016 + DIALOGIC_OKI_ADPCM = 0x0017 + MEDIAVISION_ADPCM = 0x0018 + CU_CODEC = 0x0019 + HP_DYN_VOICE = 0x001A + YAMAHA_ADPCM = 0x0020 + SONARC = 0x0021 + DSPGROUP_TRUESPEECH = 0x0022 + ECHOSC1 = 0x0023 + AUDIOFILE_AF36 = 0x0024 + APTX = 0x0025 + AUDIOFILE_AF10 = 0x0026 + PROSODY_1612 = 0x0027 + LRC = 0x0028 + DOLBY_AC2 = 0x0030 + GSM610 = 0x0031 + MSNAUDIO = 0x0032 + ANTEX_ADPCME = 0x0033 + CONTROL_RES_VQLPC = 0x0034 + DIGIREAL = 0x0035 + DIGIADPCM = 0x0036 + CONTROL_RES_CR10 = 0x0037 + NMS_VBXADPCM = 0x0038 + CS_IMAADPCM = 0x0039 + ECHOSC3 = 0x003A + ROCKWELL_ADPCM = 0x003B + ROCKWELL_DIGITALK = 0x003C + XEBEC = 0x003D + G721_ADPCM = 0x0040 + G728_CELP = 0x0041 + MSG723 = 0x0042 + INTEL_G723_1 = 0x0043 + INTEL_G729 = 0x0044 + SHARP_G726 = 0x0045 + MPEG = 0x0050 + RT24 = 0x0052 + PAC = 0x0053 + MPEGLAYER3 = 0x0055 + LUCENT_G723 = 0x0059 + CIRRUS = 0x0060 + ESPCM = 0x0061 + VOXWARE = 0x0062 + CANOPUS_ATRAC = 0x0063 + G726_ADPCM = 0x0064 + G722_ADPCM = 0x0065 + DSAT = 0x0066 + DSAT_DISPLAY = 0x0067 + VOXWARE_BYTE_ALIGNED = 0x0069 + VOXWARE_AC8 = 0x0070 + VOXWARE_AC10 = 0x0071 + VOXWARE_AC16 = 0x0072 + VOXWARE_AC20 = 0x0073 + VOXWARE_RT24 = 0x0074 + VOXWARE_RT29 = 0x0075 + VOXWARE_RT29HW = 0x0076 + VOXWARE_VR12 = 0x0077 + VOXWARE_VR18 = 0x0078 + VOXWARE_TQ40 = 0x0079 + VOXWARE_SC3 = 0x007A + VOXWARE_SC3_1 = 0x007B + SOFTSOUND = 0x0080 + VOXWARE_TQ60 = 0x0081 + MSRT24 = 0x0082 + G729A = 0x0083 + MVI_MVI2 = 0x0084 + DF_G726 = 0x0085 + DF_GSM610 = 0x0086 + ISIAUDIO = 0x0088 + ONLIVE = 0x0089 + MULTITUDE_FT_SX20 = 0x008A + INFOCOM_ITS_G721_ADPCM = 0x008B + CONVEDIA_G729 = 0x008C + CONGRUENCY = 0x008D + SBC24 = 0x0091 + DOLBY_AC3_SPDIF = 0x0092 + MEDIASONIC_G723 = 0x0093 + PROSODY_8KBPS = 0x0094 + ZYXEL_ADPCM = 0x0097 + PHILIPS_LPCBB = 0x0098 + PACKED = 0x0099 + MALDEN_PHONYTALK = 0x00A0 + RACAL_RECORDER_GSM = 0x00A1 + RACAL_RECORDER_G720_A = 0x00A2 + RACAL_RECORDER_G723_1 = 0x00A3 + RACAL_RECORDER_TETRA_ACELP = 0x00A4 + NEC_AAC = 0x00B0 + RAW_AAC1 = 0x00FF + RHETOREX_ADPCM = 0x0100 + IRAT = 0x0101 + VIVO_G723 = 0x0111 + VIVO_SIREN = 0x0112 + PHILIPS_CELP = 0x0120 + PHILIPS_GRUNDIG = 0x0121 + DIGITAL_G723 = 0x0123 + SANYO_LD_ADPCM = 0x0125 + SIPROLAB_ACEPLNET = 0x0130 + SIPROLAB_ACELP4800 = 0x0131 + SIPROLAB_ACELP8V3 = 0x0132 + SIPROLAB_G729 = 0x0133 + SIPROLAB_G729A = 0x0134 + SIPROLAB_KELVIN = 0x0135 + VOICEAGE_AMR = 0x0136 + G726ADPCM = 0x0140 + DICTAPHONE_CELP68 = 0x0141 + DICTAPHONE_CELP54 = 0x0142 + QUALCOMM_PUREVOICE = 0x0150 + QUALCOMM_HALFRATE = 0x0151 + TUBGSM = 0x0155 + MSAUDIO1 = 0x0160 + WMAUDIO2 = 0x0161 + WMAUDIO3 = 0x0162 + WMAUDIO_LOSSLESS = 0x0163 + WMASPDIF = 0x0164 + UNISYS_NAP_ADPCM = 0x0170 + UNISYS_NAP_ULAW = 0x0171 + UNISYS_NAP_ALAW = 0x0172 + UNISYS_NAP_16K = 0x0173 + SYCOM_ACM_SYC008 = 0x0174 + SYCOM_ACM_SYC701_G726L = 0x0175 + SYCOM_ACM_SYC701_CELP54 = 0x0176 + SYCOM_ACM_SYC701_CELP68 = 0x0177 + KNOWLEDGE_ADVENTURE_ADPCM = 0x0178 + FRAUNHOFER_IIS_MPEG2_AAC = 0x0180 + DTS_DS = 0x0190 + CREATIVE_ADPCM = 0x0200 + CREATIVE_FASTSPEECH8 = 0x0202 + CREATIVE_FASTSPEECH10 = 0x0203 + UHER_ADPCM = 0x0210 + ULEAD_DV_AUDIO = 0x0215 + ULEAD_DV_AUDIO_1 = 0x0216 + QUARTERDECK = 0x0220 + ILINK_VC = 0x0230 + RAW_SPORT = 0x0240 + ESST_AC3 = 0x0241 + GENERIC_PASSTHRU = 0x0249 + IPI_HSX = 0x0250 + IPI_RPELP = 0x0251 + CS2 = 0x0260 + SONY_SCX = 0x0270 + SONY_SCY = 0x0271 + SONY_ATRAC3 = 0x0272 + SONY_SPC = 0x0273 + TELUM_AUDIO = 0x0280 + TELUM_IA_AUDIO = 0x0281 + NORCOM_VOICE_SYSTEMS_ADPCM = 0x0285 + FM_TOWNS_SND = 0x0300 + MICRONAS = 0x0350 + MICRONAS_CELP833 = 0x0351 + BTV_DIGITAL = 0x0400 + INTEL_MUSIC_CODER = 0x0401 + INDEO_AUDIO = 0x0402 + QDESIGN_MUSIC = 0x0450 + ON2_VP7_AUDIO = 0x0500 + ON2_VP6_AUDIO = 0x0501 + VME_VMPCM = 0x0680 + TPC = 0x0681 + LIGHTWAVE_LOSSLESS = 0x08AE + OLIGSM = 0x1000 + OLIADPCM = 0x1001 + OLICELP = 0x1002 + OLISBC = 0x1003 + OLIOPR = 0x1004 + LH_CODEC = 0x1100 + LH_CODEC_CELP = 0x1101 + LH_CODEC_SBC8 = 0x1102 + LH_CODEC_SBC12 = 0x1103 + LH_CODEC_SBC16 = 0x1104 + NORRIS = 0x1400 + ISIAUDIO_2 = 0x1401 + SOUNDSPACE_MUSICOMPRESS = 0x1500 + MPEG_ADTS_AAC = 0x1600 + MPEG_RAW_AAC = 0x1601 + MPEG_LOAS = 0x1602 + NOKIA_MPEG_ADTS_AAC = 0x1608 + NOKIA_MPEG_RAW_AAC = 0x1609 + VODAFONE_MPEG_ADTS_AAC = 0x160A + VODAFONE_MPEG_RAW_AAC = 0x160B + MPEG_HEAAC = 0x1610 + VOXWARE_RT24_SPEECH = 0x181C + SONICFOUNDRY_LOSSLESS = 0x1971 + INNINGS_TELECOM_ADPCM = 0x1979 + LUCENT_SX8300P = 0x1C07 + LUCENT_SX5363S = 0x1C0C + CUSEEME = 0x1F03 + NTCSOFT_ALF2CM_ACM = 0x1FC4 + DVM = 0x2000 + DTS2 = 0x2001 + MAKEAVIS = 0x3313 + DIVIO_MPEG4_AAC = 0x4143 + NOKIA_ADAPTIVE_MULTIRATE = 0x4201 + DIVIO_G726 = 0x4243 + LEAD_SPEECH = 0x434C + LEAD_VORBIS = 0x564C + WAVPACK_AUDIO = 0x5756 + OGG_VORBIS_MODE_1 = 0x674F + OGG_VORBIS_MODE_2 = 0x6750 + OGG_VORBIS_MODE_3 = 0x6751 + OGG_VORBIS_MODE_1_PLUS = 0x676F + OGG_VORBIS_MODE_2_PLUS = 0x6770 + OGG_VORBIS_MODE_3_PLUS = 0x6771 + ALAC = 0x6C61 + _3COM_NBX = 0x7000 # Can't have leading digit + OPUS = 0x704F + FAAD_AAC = 0x706D + AMR_NB = 0x7361 + AMR_WB = 0x7362 + AMR_WP = 0x7363 + GSM_AMR_CBR = 0x7A21 + GSM_AMR_VBR_SID = 0x7A22 + COMVERSE_INFOSYS_G723_1 = 0xA100 + COMVERSE_INFOSYS_AVQSBC = 0xA101 + COMVERSE_INFOSYS_SBC = 0xA102 + SYMBOL_G729_A = 0xA103 + VOICEAGE_AMR_WB = 0xA104 + INGENIENT_G726 = 0xA105 + MPEG4_AAC = 0xA106 + ENCORE_G726 = 0xA107 + ZOLL_ASAO = 0xA108 + SPEEX_VOICE = 0xA109 + VIANIX_MASC = 0xA10A + WM9_SPECTRUM_ANALYZER = 0xA10B + WMF_SPECTRUM_ANAYZER = 0xA10C + GSM_610 = 0xA10D + GSM_620 = 0xA10E + GSM_660 = 0xA10F + GSM_690 = 0xA110 + GSM_ADAPTIVE_MULTIRATE_WB = 0xA111 + POLYCOM_G722 = 0xA112 + POLYCOM_G728 = 0xA113 + POLYCOM_G729_A = 0xA114 + POLYCOM_SIREN = 0xA115 + GLOBAL_IP_ILBC = 0xA116 + RADIOTIME_TIME_SHIFT_RADIO = 0xA117 + NICE_ACA = 0xA118 + NICE_ADPCM = 0xA119 + VOCORD_G721 = 0xA11A + VOCORD_G726 = 0xA11B + VOCORD_G722_1 = 0xA11C + VOCORD_G728 = 0xA11D + VOCORD_G729 = 0xA11E + VOCORD_G729_A = 0xA11F + VOCORD_G723_1 = 0xA120 + VOCORD_LBC = 0xA121 + NICE_G728 = 0xA122 + FRACE_TELECOM_G729 = 0xA123 + CODIAN = 0xA124 + FLAC = 0xF1AC + EXTENSIBLE = 0xFFFE + DEVELOPMENT = 0xFFFF def read(filename: FileLike[bytes], mmap: bool = False) -> onp.Array[_Shape1D | _Shape2D, _ScalarR]: ... def write(filename: FileLike[bytes], rate: int, data: onp.Array[_Shape1D | _Shape2D, _ScalarW]) -> None: ... diff --git a/scipy-stubs/special/cython_special.pyi b/scipy-stubs/special/cython_special.pyi index 488686ee..6120e304 100644 --- a/scipy-stubs/special/cython_special.pyi +++ b/scipy-stubs/special/cython_special.pyi @@ -17,7 +17,7 @@ class _BaseCythonFunctionOrMethod(Protocol): __qualname__: str # cannot be `LiteralString` (blame typeshed) __module__: str # cannot be `Literal["scipy.special.cython_special"]` (blame typeshed) - __annotations__: dict[str, Never] # and that's why were here :) + __annotations__: dict[str, Never] # type: ignore[assignment] __defaults__: tuple[()] | tuple[Literal[0]] | None __kwdefaults__: None # kw-only params aren't used