stdlib: add some parameter defaults (#14610)

This commit is contained in:
Jelle Zijlstra
2025-08-21 00:17:33 -07:00
committed by GitHub
parent 310c161af7
commit 02a4b07b54
14 changed files with 30 additions and 22 deletions
@@ -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
+1 -1
View File
@@ -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