mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-28 05:42:10 +08:00
Add _locale module (#10859)
More accurately reflect the platform availability of several constants and functions in `locale`.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
# These entries looks like a `setup-python` bug:
|
||||
(dbm.gnu)?
|
||||
(locale.bind_textdomain_codeset)?
|
||||
(locale.bindtextdomain)?
|
||||
(locale.dcgettext)?
|
||||
(locale.dgettext)?
|
||||
(locale.gettext)?
|
||||
(locale.textdomain)?
|
||||
(_?locale.bind_textdomain_codeset)?
|
||||
(_?locale.bindtextdomain)?
|
||||
(_?locale.dcgettext)?
|
||||
(_?locale.dgettext)?
|
||||
(_?locale.gettext)?
|
||||
(_?locale.textdomain)?
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# These entries looks like a `setup-python` bug:
|
||||
(dbm.gnu)?
|
||||
(locale.bind_textdomain_codeset)?
|
||||
(locale.bindtextdomain)?
|
||||
(locale.dcgettext)?
|
||||
(locale.dgettext)?
|
||||
(locale.gettext)?
|
||||
(locale.textdomain)?
|
||||
(_?locale.bind_textdomain_codeset)?
|
||||
(_?locale.bindtextdomain)?
|
||||
(_?locale.dcgettext)?
|
||||
(_?locale.dgettext)?
|
||||
(_?locale.gettext)?
|
||||
(_?locale.textdomain)?
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
ctypes.GetLastError # Is actually a pointer
|
||||
locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported conditionally
|
||||
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
|
||||
# alias for a class defined elsewhere,
|
||||
# mypy infers the variable has type `(*args) -> DupHandle` but stubtest infers the runtime type as <class DupHandle>
|
||||
multiprocessing.reduction.AbstractReducer.DupHandle
|
||||
|
||||
Reference in New Issue
Block a user