Commit Graph

8 Commits

Author SHA1 Message Date
Jelle Zijlstra
1d6e3f492e Fix incorrect usage of AnyStr (#1215)
* Fix incorrect usage of AnyStr

- sqlite3 was using Union[bytes, AnyStr], which doesn't make sense
- The urllib functions I changed accept either bytes or str for their "safe"
  argument
- Also added supports for PathLike to pstats
- Remove some unused imports of AnyStr

* pstats: python 2 accepts unicode
2017-04-27 08:47:59 -07:00
Semyon Proshev
c10dc797e7 Remove object as the only ancestor for string.Formatter in Python 3 stubs. (#1072) 2017-03-22 07:33:46 -07:00
Sebastian Meßmer
6ffaadbd67 Fix string.pyi (#971)
Add missing types for two arguments
2017-03-06 08:08:36 -08:00
Alvaro Caceres
ecc400f125 Make string.Template.substitute's arg optional (#535) 2016-09-12 11:12:28 -07:00
David Euresti
d760d48f52 Copy string.Formatter to python 3 (#443) 2016-08-05 07:47:23 -07:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
d2a3d4a4ed Use explicit "# type: str" instead of '' shortcut. 2015-11-09 07:59:24 -08:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00