Henry Schreiner
da08cd30d0
locale: getlocale may return None's ( #7562 )
...
According to the docs at https://docs.python.org/3/library/locale.html#locale.getlocale , this function may return None for either of the two items in the return sequence, which is missed in the current form.
Also adjust `locale.setlocale()`, which can accept a tuple of `(None, None)` for the second argument.
2022-03-28 23:23:03 +01:00
Alex Waygood
d2ddda00cf
Fix various __all__-related typos and omissions ( #7378 )
2022-02-25 15:10:00 +02:00
Alex Waygood
3ead05f277
Add __all__ to modules beginning with 'j', 'k' and 'l' ( #7328 )
2022-02-20 15:06:54 -08:00
Luna Nova
846c2dfa4f
Add locale.gettext and related stubs, fixes #7164 ( #7165 )
2022-02-11 17:18:45 -08:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Shantanu
5ba7254555
locale: fix positional-only args ( #6413 )
2021-11-28 11:43:46 +02:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Nikita Sobolev
3bc309daaa
Adds AM_STR and PM_STR to locale.py ( #6065 )
2021-09-24 10:51:33 +02:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Sebastian Rittau
4a3b6eb8d8
Update explanation for importing builtins.str ( #5465 )
2021-05-16 13:55:08 +02:00
Sebastian Rittau
841a365284
Remove compatibility aliases ( #5464 )
...
* Remove compatibility aliases
Remove a few instances of Text
Use aliases from _typeshed
* Remove unused imports
2021-05-15 20:49:20 +03:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
hatal175
244fc622e6
Add workflow stubtests for macos ( #5384 )
...
* Add macos to stubtest
* Add general darwin stubtest exception file
* Adding exceptions and platform ifs
2021-05-09 23:24:00 +03:00
Shantanu
fa9d5a5e9f
future first: switch the order of some if statements ( #5206 )
...
Since we're adding this to our contribution guidelines in
https://github.com/python/typeshed/pull/5205
2021-04-11 06:44:18 -07:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00