mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-11 19:00:52 +08:00
stdlib: add some parameter defaults (#14610)
This commit is contained in:
@@ -113,6 +113,8 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
|
||||
xml.etree.ElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
|
||||
xml.etree.cElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
|
||||
|
||||
platform.platform # runtime default is 0, we pretend it's a bool
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.12
|
||||
|
||||
@@ -76,6 +76,8 @@ urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to
|
||||
xml.etree.ElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
|
||||
xml.etree.cElementTree.Element.__bool__ # Doesn't really exist; see comments in stub
|
||||
|
||||
platform.platform # runtime default is 0, we pretend it's a bool
|
||||
|
||||
|
||||
# =======
|
||||
# <= 3.12
|
||||
|
||||
@@ -193,7 +193,6 @@ sqlite3\.test\..+ # Modules that exist at runtime, but shouldn't be added to ty
|
||||
tkinter.EventType.__new__ # Derives from (str, Enum)
|
||||
types.CodeType.replace # stubtest thinks default values are None but None doesn't work at runtime
|
||||
|
||||
|
||||
# =============================================================
|
||||
# Allowlist entries that cannot or should not be fixed; <= 3.11
|
||||
# =============================================================
|
||||
@@ -222,6 +221,7 @@ typing_extensions\.TypeAliasType\.__(parameters|type_params|name|module|value)__
|
||||
unittest.test # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
unittest\.test\..+ # Modules that exist at runtime, but shouldn't be added to typeshed
|
||||
|
||||
platform.platform # runtime default is 0, we pretend it's a bool
|
||||
|
||||
# =============================================================
|
||||
# Allowlist entries that cannot or should not be fixed; <= 3.12
|
||||
|
||||
Reference in New Issue
Block a user