Jon Dufresne
0ee7c3c38b
Update __import__ function annotations ( #3188 )
...
Per the docs, globals/locals is an optional argument.
Additionally, globals/locals can be any mapping type, not only a dict.
Likewise, fromlist can be any sequence (the docs mention a tuple, not a
list).
The function returns a ModuleType, not Any.
2019-08-16 11:03:00 +02:00
Jon Dufresne
679e1a9a8c
Update URL: python/black → psf/black ( #3180 )
2019-08-10 13:31:58 -07:00
Jon Dufresne
02401c836f
Add type annotations for Python 3 html.entities ( #3161 )
2019-07-31 15:46:16 +02:00
Jon Dufresne
f2fdb54765
Precise the type of Python 2 htmlentitydefs module ( #3163 )
...
The code and documentation specifies the values specifically as
dictionaries.
2019-07-31 15:45:50 +02:00
Jon Dufresne
edee7cfb3c
Remove unused import from stdlib/2/htmlentitydefs.pyi ( #3162 )
2019-07-31 09:06:02 +02:00
Jon Dufresne
910c71050d
Update Black URL ( #2950 )
2019-05-04 11:42:44 -04:00
Jon Dufresne
47f22a341e
Add def __getattr__(name) -> Any: ... to all docutils stubs ( #2439 )
...
The stubs are very incomplete causing false positive when used. Add a
fallback to until they can become more complete.
2018-09-13 21:59:13 +02:00
Jon Dufresne
2b022d18a4
Add stub for unittest.mock ( #731 )
...
Stub generated by stubgen.
Fixes #372
2016-12-07 08:05:01 -08:00
Jon Dufresne
4b369945d0
Change struct fmt argument to str instead of AnyStr ( #669 )
...
Switching between a bytes fmt and str fmt argument can cause a BytesWarning
when running Python with the -b command line argument.
2016-11-07 16:58:25 -08:00