Commit Graph

10 Commits

Author SHA1 Message Date
Eric Traut
f46fb7ff59 Added some missing type annotations in stdlib stubs. (#4418)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2020-08-08 20:49:37 +02:00
Eric Traut
04c74640f0 Removed imported symbols that are not accessed or re-exported (#4387)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2020-08-05 22:49:17 -07:00
Jelle Zijlstra
0142a87da8 adjust isort config (#4290)
Fixes #4288.

- Default imports to THIRD_PARTY, so in effect we merge the FIRST_PARTY and THIRD_PARTY stubs. This means import order is no longer affected by whether typing_extensions is installed locally.
- Treat typing_extensions, _typeshed and some others as standard library modules.

Note that isort master is very different from the latest release; we'll have to do something
different if and when the next isort release comes out.
2020-06-29 00:00:21 -07:00
Jelle Zijlstra
5d553c9584 apply black and isort (#4287)
* apply black and isort

* move some type ignores
2020-06-28 13:31:00 -07:00
Jelle Zijlstra
e1d89e5742 remove references to "Text" in Python 3-only stubs (#4251) 2020-06-22 12:39:01 +02:00
Rune Tynan
79111ee8ed Fix _DispatchProtocol in xmlrpc.server (#4165) 2020-06-21 13:42:14 -07:00
Sebastian Rittau
51cf2f51b8 Add IO protocols to _typeshed (#4230) 2020-06-14 20:44:48 +02:00
Jelle Zijlstra
44a852dff5 Literal: always import from typing_extensions for simplicity (#4219) 2020-06-10 21:23:58 -07:00
Rune Tynan
65b3ef91fd Remove class variable overrides (#3987) 2020-05-13 10:16:38 -07:00
Rune Tynan
b8045a3fb2 Add xmlrpc package (#3834)
* Add xmlrpc client module

* Add xmlrpc server module, update client

* Fix mypy errors with protocol and Dict fix

* Add Type[] around requestHandler

* Fix docroutine incompatible override

* Whoops, ignored is also missing

* Remove unnecessary str/repr overrides

* Remove unnecessary __eq__ and quotes around Unmarshall. DateTime __eq__ left for now

* Fix problems from review

* Fix various version-specific differences, make request_type conservative (only bytes, guaranteed to have same len as number of bytes)

* Silly misspelling

* Change from IO to ad-hoc minimal protocols
2020-05-13 07:17:17 -07:00