mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 01:23:24 +08:00
Bump mypy to 1.0 (#9684)
This commit is contained in:
@@ -1,10 +1,2 @@
|
||||
# Stub-only module.
|
||||
exifread._types
|
||||
|
||||
# The following constants are only re-exported at runtime as a side effect
|
||||
# of Python's import system.
|
||||
exifread.DEFAULT_STOP_TAG
|
||||
exifread.classes.DEFAULT_STOP_TAG
|
||||
exifread.classes.EXIF_TAGS
|
||||
exifread.classes.FIELD_TYPES
|
||||
exifread.classes.IGNORE_TAGS
|
||||
|
||||
2
stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt
Normal file
2
stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# temp variable used to define scrotExists by checking if the command "scrot" exists
|
||||
pyscreeze.whichProc
|
||||
@@ -2,10 +2,3 @@
|
||||
cffi.(api.)?FFI.CData
|
||||
cffi.(api.)?FFI.CType
|
||||
cffi.(api.)?FFI.buffer
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
cffi.vengine_cpy.__warningregistry__
|
||||
|
||||
# Unnecessary re-exports
|
||||
cffi.cparser.COMMON_TYPES
|
||||
cffi.verifier.__version_verifier_modules__
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# These are re-exports which we consider an implementation detail:
|
||||
chevron.main.version
|
||||
chevron.renderer.linesep
|
||||
@@ -42,8 +42,5 @@ colorama.ansi.AnsiStyle.RESET_ALL
|
||||
colorama.initialise.wrapped_stderr
|
||||
colorama.initialise.wrapped_stdout
|
||||
|
||||
# These are re-exports that are implementation detail:
|
||||
colorama.ansitowin32.BEL
|
||||
|
||||
# Not planning on writing stubs for tests:
|
||||
colorama.tests.*
|
||||
|
||||
@@ -3,6 +3,5 @@ colorama.winterm.WinColor
|
||||
colorama.winterm.WinStyle
|
||||
colorama.winterm.WinTerm
|
||||
|
||||
# These are re-exports that are implementation detail:
|
||||
colorama.ansitowin32.windll
|
||||
# A re-export that's an implementation detail:
|
||||
colorama.winterm.get_osfhandle
|
||||
|
||||
@@ -6,13 +6,3 @@ dateparser.search.detection.BaseLanguageDetector.iterate_applicable_languages
|
||||
|
||||
# Timezone and other internal data:
|
||||
dateparser.data.date_translation_data.*
|
||||
|
||||
# Re-exports:
|
||||
dateparser.conf.date_order_chart
|
||||
dateparser.conf.language_order
|
||||
dateparser.languages.loader.language_locale_dict
|
||||
dateparser.languages.loader.language_order
|
||||
dateparser.languages.locale.ALWAYS_KEEP_TOKENS
|
||||
dateparser.custom_language_detection.language_mapping.language_map
|
||||
dateparser.custom_language_detection.fasttext.dateparser_model_home
|
||||
dateparser.timezone_parser.timezone_info_list
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
# These are re-exports which we consider an implementation detail
|
||||
dockerfile_parse.parser.DOCKERFILE_FILENAME
|
||||
dockerfile_parse.parser.COMMENT_INSTRUCTION
|
||||
@@ -2,13 +2,6 @@
|
||||
fpdf.FPDF.output
|
||||
fpdf.fpdf.FPDF.output
|
||||
|
||||
# Unnecessary re-export from codecs
|
||||
fpdf.syntax.BOM_UTF16_BE
|
||||
|
||||
# stubtest doesn't recognize ImportError handler
|
||||
fpdf.linearization.signer
|
||||
fpdf.output.signer
|
||||
|
||||
# Argument has default at runtime, but using it raises a TypeError.
|
||||
fpdf.FPDF.set_creation_date
|
||||
fpdf.fpdf.FPDF.set_creation_date
|
||||
|
||||
@@ -1,9 +1,2 @@
|
||||
# Imports that stubtest thinks should be re-exported.
|
||||
influxdb_client.client.write.dataframe_serializer.DEFAULT_WRITE_PRECISION
|
||||
influxdb_client.client.write.retry.random
|
||||
influxdb_client.client.write_api.DEFAULT_WRITE_PRECISION
|
||||
influxdb_client.client.write_api.random
|
||||
influxdb_client.client.write_api_async.DEFAULT_WRITE_PRECISION
|
||||
|
||||
# Metaclass problem inherited from urllib3.
|
||||
influxdb_client.client.write.retry.WritesRetry
|
||||
|
||||
@@ -2,15 +2,6 @@
|
||||
# =============================
|
||||
netaddr.core.a # This is a temporary module attribute used to detect python version
|
||||
|
||||
# These are unnecessary re-exports
|
||||
netaddr.ip.INET_PTON
|
||||
netaddr.ip.N
|
||||
netaddr.ip.NOHOST
|
||||
netaddr.ip.P
|
||||
netaddr.ip.Z
|
||||
netaddr.ip.ZEROFILL
|
||||
|
||||
|
||||
# Error: is not present at runtime
|
||||
# ================================
|
||||
netaddr.ip.iana.XMLRecordParser.__getattr__ # __init__ has `self.__dict__.update(kwargs)`
|
||||
|
||||
@@ -42,5 +42,5 @@ def clamp_value(minimum: int, val: int, maximum: int) -> int: ...
|
||||
# This function attempts to convert objects to bytes,
|
||||
# *but* just returns the object unchanged if that was unsuccessful!
|
||||
def asbytes(s: object) -> object: ...
|
||||
def b(s: str | bytes, encoding: str = "utf-8") -> bytes: ...
|
||||
def u(s: str | bytes, encoding: str = "utf-8") -> str: ...
|
||||
def b(s: str | bytes, encoding: str = "utf8") -> bytes: ...
|
||||
def u(s: str | bytes, encoding: str = "utf8") -> str: ...
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
parsimonious.nodes.RuleDecoratorMeta.__new__
|
||||
|
||||
# Re-export:
|
||||
parsimonious.nodes.version_info
|
||||
|
||||
# Magic:
|
||||
parsimonious.adhoc_expression
|
||||
|
||||
|
||||
@@ -37,15 +37,12 @@ passlib.utils.handlers.HasRounds.rounds
|
||||
|
||||
# Errors in `__all__` at runtime:
|
||||
# TODO: change after https://github.com/python/mypy/pull/14217 is released
|
||||
passlib.handlers.oracle
|
||||
passlib.handlers.oracle.__all__
|
||||
passlib.handlers.oracle.oracle11g
|
||||
passlib.handlers.oracle.oracle10g
|
||||
passlib.handlers.mysql
|
||||
passlib.handlers.mysql.__all__
|
||||
passlib.handlers.mysql.mysq41
|
||||
|
||||
# Mutable state because of the warnigns:
|
||||
passlib.utils.des.__warningregistry__
|
||||
|
||||
# Compat tools are ignored:
|
||||
passlib.utils.compat.*
|
||||
|
||||
|
||||
@@ -25,12 +25,6 @@ pika.adapters.blocking_connection.BlockingConnection.publisher_confirms
|
||||
# created instances unusable, so we require the arguments in the stub.
|
||||
pika.spec.Queue.DeclareOk.__init__
|
||||
|
||||
# Flagged by stubtest for unknown reasons.
|
||||
pika.data.PY2
|
||||
pika.data.basestring
|
||||
pika.spec.str_or_bytes
|
||||
pika.validators.basestring
|
||||
|
||||
# Arguments have a sentinel default, which is not reflected in the stubs.
|
||||
pika.ConnectionParameters.__init__
|
||||
pika.connection.ConnectionParameters.__init__
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
# Unintended re-exports
|
||||
pyasn1.compat.binary.version_info
|
||||
pyasn1.compat.octets.version_info
|
||||
pyasn1.compat.string.version_info
|
||||
|
||||
# type_check_only
|
||||
pyasn1.type.base.NoValue.plug
|
||||
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
# Re-export:
|
||||
crontabs.X_OK
|
||||
|
||||
# stub does not have *args argument "args", but function doesn't actually accept positional args
|
||||
crontab.CronTab.remove_all
|
||||
|
||||
@@ -20,9 +20,5 @@ Xlib.protocol.rq.*.name
|
||||
# Structs generate their attributes (@type_check_only)
|
||||
Xlib.protocol.rq.Struct.__getattr__
|
||||
|
||||
# Iteration variable bleed into the global scope
|
||||
# Iteration variable that bleeds into the global scope
|
||||
Xlib.protocol.rq.c
|
||||
# Re-exports from six
|
||||
Xlib.ext.xinput.integer_types
|
||||
Xlib.protocol.display.PY3
|
||||
Xlib.protocol.rq.PY3
|
||||
|
||||
@@ -8,36 +8,10 @@ requests.adapters.PoolManager.proxy_config
|
||||
requests.adapters.PoolManager.urlopen
|
||||
requests.adapters.Retry.DEFAULT
|
||||
|
||||
# Unnecessary re-exported constants from requests.compat
|
||||
requests.adapters.basestring
|
||||
requests.auth.basestring
|
||||
requests.utils.basestring
|
||||
requests.utils.integer_types
|
||||
requests.models.basestring
|
||||
|
||||
# Unnecessary re-exported constant
|
||||
# (you should access this as `requests.__version__` or `requests.__version__.__version__`,
|
||||
# not `requests.help.requests_version`)
|
||||
requests.help.requests_version
|
||||
|
||||
# No reason to access this re-exported constant from `requests.sessions` instead of from `requests.utils`
|
||||
requests.sessions.DEFAULT_PORTS
|
||||
|
||||
# Unnecessary re-exports of third-party modules
|
||||
requests.help.chardet
|
||||
requests.help.cryptography
|
||||
requests.help.pyopenssl
|
||||
requests.help.OpenSSL
|
||||
|
||||
# Loop variables that leak into the global scope
|
||||
requests.packages.mod
|
||||
requests.packages.package
|
||||
requests.packages.target
|
||||
|
||||
# Internal implementation details, not for public consumption
|
||||
requests.charset_normalizer_version
|
||||
requests.chardet_version
|
||||
requests.utils.HEADER_VALIDATORS
|
||||
|
||||
# Metaclass differs:
|
||||
requests.adapters.Retry
|
||||
|
||||
@@ -29,3 +29,7 @@ pkg_resources.to_filename
|
||||
|
||||
# Only present if docutils is installed
|
||||
setuptools._distutils.command.check.SilentReporter
|
||||
|
||||
# Discrepancy in the value of the default
|
||||
# between setuptools's version of distutils and the stdlib distutils
|
||||
setuptools._distutils.core.Command.announce
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# re-exports
|
||||
toml.decoder.linesep
|
||||
@@ -7,16 +7,16 @@ vobject.base.VBase.__init__
|
||||
vobject.win32tz
|
||||
|
||||
# dependencies
|
||||
vobject.change_tz.PyICU
|
||||
vobject.icalendar.Pytz
|
||||
vobject.icalendar.pytz
|
||||
|
||||
# re-exports
|
||||
vobject.hcalendar.CRLF
|
||||
|
||||
# python2 compat
|
||||
vobject.base.basestring
|
||||
vobject.base.str_
|
||||
vobject.base.to_unicode
|
||||
vobject.base.to_basestring
|
||||
vobject.vcard.basestring
|
||||
|
||||
# implementation details that users shouldn't depend on
|
||||
vobject.base.formatter
|
||||
vobject.base.handler
|
||||
|
||||
@@ -24,33 +24,44 @@ class Change(NamedTuple):
|
||||
hunk: int
|
||||
|
||||
file_timestamp_str: str
|
||||
|
||||
diffcmd_header: Pattern[str]
|
||||
unified_header_index: Pattern[str]
|
||||
unified_header_old_line: Pattern[str]
|
||||
unified_header_new_line: Pattern[str]
|
||||
unified_hunk_start: Pattern[str]
|
||||
unified_change: Pattern[str]
|
||||
|
||||
context_header_old_line: Pattern[str]
|
||||
context_header_new_line: Pattern[str]
|
||||
context_hunk_start: Pattern[str]
|
||||
context_hunk_old: Pattern[str]
|
||||
context_hunk_new: Pattern[str]
|
||||
context_change: Pattern[str]
|
||||
|
||||
ed_hunk_start: Pattern[str]
|
||||
ed_hunk_end: Pattern[str]
|
||||
rcs_ed_hunk_start: Pattern[str]
|
||||
|
||||
default_hunk_start: Pattern[str]
|
||||
default_hunk_mid: Pattern[str]
|
||||
default_change: Pattern[str]
|
||||
|
||||
git_diffcmd_header: Pattern[str]
|
||||
git_header_index: Pattern[str]
|
||||
git_header_old_line: Pattern[str]
|
||||
git_header_new_line: Pattern[str]
|
||||
git_header_file_mode: Pattern[str]
|
||||
git_header_binary_file: Pattern[str]
|
||||
git_binary_patch_start: Pattern[str]
|
||||
git_binary_literal_start: Pattern[str]
|
||||
git_binary_delta_start: Pattern[str]
|
||||
base85string: Pattern[str]
|
||||
|
||||
bzr_header_index: Pattern[str]
|
||||
bzr_header_old_line: Pattern[str]
|
||||
bzr_header_new_line: Pattern[str]
|
||||
|
||||
svn_header_index: Pattern[str]
|
||||
svn_header_timestamp_version: Pattern[str]
|
||||
svn_header_timestamp: Pattern[str]
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
zxcvbn.__main__
|
||||
|
||||
# re-exports:
|
||||
zxcvbn.scoring.ADJACENCY_GRAPHS
|
||||
zxcvbn.matching.FREQUENCY_LISTS
|
||||
|
||||
Reference in New Issue
Block a user