Commit Graph
100 Commits
Author SHA1 Message Date
Nikita Sobolev 4905074919 tarfile.TarFile: mark OPEN_METH as a ClassVar (#8725) 2022-09-11 14:32:52 +01:00
Nikita Sobolev d987f92e55 string.Template: Make several attributes ClassVars (#8724) 2022-09-11 14:29:31 +01:00
Nikita Sobolev 43d4174590 SQLAlchemy: Use ParamSpec for Engine.transaction() and Engine.run_callable() (#8718) 2022-09-10 16:29:54 +01:00
Nikita Sobolev d5d4bbbe7c Use ClassVar for class-level attributes in calendar (#8691)
Source: https://github.com/python/cpython/blob/f177f6f29b069f522a0b3ba44eaae19852b6d2b0/Lib/calendar.py#L418-L436
2022-09-06 10:14:56 +01:00
Nikita Sobolev 4a4acdb30a redis: Improve kwargs typing in sentinel (#8661) 2022-09-02 13:02:12 +01:00
Nikita Sobolev d3cded7fc6 redis: Add _Encodable type alias (#8638) 2022-08-29 13:38:22 +02:00
Nikita Sobolev 6e985ef3de stdlib mapping classes: Use better names for various pos-only parameters (#8637) 2022-08-28 23:29:00 +01:00
Nikita Sobolev 6d5fd0e290 Allow passing tuples to ipaddress.ip_network (#8634) 2022-08-27 18:38:26 +01:00
Nikita Sobolev 481027e194 redis: Improve ClusterPubSub types (#8627) 2022-08-27 16:13:46 +01:00
Nikita Sobolev 0259068ad6 Remove duplicate definitions in sub-classes (#8594) 2022-08-26 17:10:55 +02:00
Nikita Sobolev fed419b8f1 Add CTYPES_MAX_ARGCOUNT to _ctypes (#8601) 2022-08-23 14:52:16 -07:00
Nikita Sobolev 57495ddaf4 Update redis/cluster.pyi (#8593) 2022-08-22 16:09:01 +02:00
Nikita Sobolev 383eca299b redis: Do not override AbstractRedis.RESPONSE_CALLBACKS (#8592) 2022-08-22 14:51:51 +01:00
Nikita Sobolev e17ca47782 Further improve redis.cluster (#8578) 2022-08-21 17:00:53 +01:00
c6d34cc24d Improve redis.cluster types (#8573)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-20 18:46:09 +01:00
Nikita SobolevandJelle Zijlstra d53d3258b2 Add "Naming convention" to test_cases/README.md (#8521)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-08-12 20:15:23 -07:00
Nikita SobolevandAlex Waygood 510feeb3fc Improve constructor for builtins.dict (#8517)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-10 19:04:07 +01:00
Nikita Sobolev 5cc966cc57 Improve email.headerregistry.HeaderRegistry stub (#8516) 2022-08-10 19:00:11 +01:00
Nikita Sobolev 266fed2f83 Consistent naming of files in the test_cases directory (#8520) 2022-08-10 10:33:42 +01:00
Nikita Sobolev 4e3e9ba2c6 Remove outdated TODO comment (#8508) 2022-08-09 09:55:45 +02:00
Nikita Sobolev 4e5d9d1cca Add missing metaclasses in ast and contextlib (#8497) 2022-08-08 16:08:07 +01:00
Nikita Sobolev 64bc0590a6 Remove un-needed __hash__ methods from stdlib (#8465) 2022-08-06 14:55:27 +01:00
Nikita Sobolev ac86defef7 Simplify multiprocessing.context.{SpawnProcess,SpawnContext} (#8499) 2022-08-06 12:03:43 +01:00
Nikita Sobolev 2f15b0d4db _sendfile_compatible is a class variable (#8496) 2022-08-05 10:52:08 +02:00
Nikita Sobolev a03e8b4949 Revert __eq__ removal (#8487)
Refs #8483
2022-08-04 23:51:42 +02:00
Nikita Sobolev a376da87bd Remove duplicate definitions (#8483) 2022-08-04 18:55:18 +02:00
Nikita SobolevandAlex Waygood 799fd2c8d8 Improve multiprocessing.context module (#8466)
* Use `ClassVar` where applicable
* Fix `_Popen()` return types
* Remove non-existing field `BaseContext.Process`

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-04 12:30:23 +02:00
Nikita Sobolev bcd770bad3 Always return True from xml.dom.minidom.Node.__bool__ (#8480) 2022-08-04 12:23:34 +02:00
Nikita Sobolev 0480550fc3 Adds missing __dir__ definitions (#8479) 2022-08-04 12:21:43 +02:00
Nikita Sobolev b19d447721 Remove Enum.__hash__, improve Enum.__reduce_ex__ (#8477) 2022-08-03 18:19:49 +01:00
Nikita Sobolev 38c4a1ece2 Remove redundant __str__ methods (#8475) 2022-08-03 13:45:16 +02:00
Nikita SobolevandAlex Waygood 1bd1625c36 importlib: SimplePath: __div__ -> __truediv__ on 3.10 (#8451)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 07:15:46 +01:00
275fc28733 Improve redis.cluster annotations (#8379)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-30 12:50:39 +01:00
Nikita Sobolev aba4bbd13b Add pyopenssl.rand module (#8435) 2022-07-29 09:24:15 +01:00
Nikita Sobolev abd893abae Type http.client.HTTPConnection.sock (#8386) 2022-07-26 11:07:54 +02:00
Nikita Sobolev d4287a7f08 Add pyopenssl.version module (#8384) 2022-07-24 20:46:54 +01:00
eb9edf1bd6 Add missing methods to OpenSSL.SSL.Connection (#8374)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-24 16:48:41 +01:00
Nikita Sobolev 5598b49851 Improve redis.crc types (#8375) 2022-07-23 16:57:42 +01:00
Nikita Sobolev 60e5d96043 Add ocsp callback setters to OpenSSL.SSL (#8367) 2022-07-22 19:27:28 +01:00
Nikita Sobolev 32bac7280e Remove python3.6 stubs from pyclbr (#8364) 2022-07-22 11:36:04 +02:00
Nikita Sobolev 83c6a48772 Add proto_version setters to OpenSSL.SSL (#8363) 2022-07-22 11:33:46 +02:00
Nikita Sobolev 73de76c033 Change Stub versioning wording in CONTRIBUTING.md (#8365) 2022-07-22 11:31:51 +02:00
175e81be7f Improve redis.utils types (#8362)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-22 08:57:15 +01:00
Nikita Sobolev fab1b59715 Always return Iterator, not Iterable for __iter__ (#8361) 2022-07-22 08:10:58 +01:00
Nikita Sobolev 6ae2da64e6 Improve redis.retry types (#8354) 2022-07-21 17:51:13 +02:00
Nikita Sobolev 6fa7846edd Annotate some redis.backoff items (#8352) 2022-07-21 16:52:15 +02:00
f178ae0d83 Improve types of redis.connection module (#8342)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-20 13:48:13 +01:00
Nikita Sobolev 9cda16f5df Improve redis.sentinel types (#8331) 2022-07-19 13:04:09 +02:00
Nikita Sobolev 780269823b Improve redis/asyncio/client.pyi (#8141) 2022-06-23 11:52:56 +01:00
Nikita Sobolev 4d169eaa83 Adds bdist_wininst definition (#7249) 2022-02-20 22:58:48 -08:00
Nikita Sobolev 2ada15c4e4 Use Literal type in msvcrt (#7257) 2022-02-18 01:27:28 -08:00
Nikita Sobolev 90bdda8fd9 Remove _NNTPBase from nntplib (#7251) 2022-02-18 00:52:38 +02:00
Nikita Sobolev 1903038adb Backport ossaudiodev availability to @python2 (#7236) 2022-02-16 11:22:51 +01:00
Nikita Sobolev 09395dd747 Add --disallow-untyped-decorators to mypy_test (#7235) 2022-02-16 01:47:52 -08:00
Nikita Sobolev 4293ad0483 optparse.check_choice returns value type (#7209) 2022-02-14 14:14:03 -08:00
Nikita Sobolev f03d385012 ossaudiodev is not available on windows and darwin (#7204) 2022-02-14 22:02:38 +01:00
Nikita Sobolev 5014f9f50c Improve __reduce__ signature accross stdlib (#7182) 2022-02-13 12:24:27 +01:00
Nikita Sobolev 6882e513c2 Improve Self type usage accross stdlib (#7183) 2022-02-13 12:21:01 +01:00
Nikita SobolevandJelle Zijlstra 2ce1844905 Fix context type in pprint.PrettyPrinter.format (#7179)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-02-12 11:51:29 -08:00
Nikita Sobolev 3b05794ba9 Improve poplib with Literal values (#7180) 2022-02-12 19:24:18 +02:00
Nikita SobolevandAlex Waygood 418574f82c Improve socketserver (#7073)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-02-11 17:22:00 -08:00
Nikita Sobolev 9150db52a6 Improve pstats typing (#7174)
* Add __all__
* Use Literal for Stats.sort_stats() argument type.
* Add FunctionProfile, StatsProfile, and Stats.get_stats_profile() (Python 3.9+)
2022-02-11 12:30:00 +01:00
Nikita Sobolev b0202f71eb Update actions/github-script to v5 (#7151) 2022-02-08 14:09:36 -08:00
Nikita Sobolev da1f46adae Add precise types for underlying queue objects (#7157) 2022-02-08 07:06:59 -08:00
Nikita Sobolev a906d54742 Improve pydoc typings (#7152)
Enforce same type HTMLDoc.multicolumn "list" and "format" arguments.

Annotate ModuleScanner.run "key" argument.
2022-02-08 13:54:57 +01:00
Nikita Sobolev 8cb1518bcd Improve readline typings (#7141) 2022-02-06 11:31:19 +02:00
Nikita Sobolev c42bfc5710 Add __all__ to runpy (#7140) 2022-02-05 20:23:47 +02:00
Nikita Sobolev bdef0a70a6 Improve sched typings (#7138) 2022-02-05 07:36:43 -08:00
Nikita Sobolev 819f8dfc10 Improve ipaddress module (#7129) 2022-02-04 21:19:34 -08:00
Nikita Sobolev 1b99812621 Require coroutines for create_task() (#6779) 2022-02-02 13:35:00 +01:00
Nikita Sobolev 970b8a676c Use async def instead of def ... -> Awaitable in typing (#7105) 2022-02-02 13:14:08 +01:00
Nikita Sobolev 9854926289 function argument in shutil.register_unpack_format must be Callable (#7083) 2022-01-30 11:29:36 -08:00
Nikita Sobolev 1a71371dda Use dbm._TFlags in shelve.open (#7084) 2022-01-30 14:05:52 +01:00
Nikita Sobolev 54eef59fe4 Improve shlex.push_source types (#7071) 2022-01-29 11:41:19 +02:00
Nikita Sobolev 749d3db815 Make asyncio.isfuture a TypeGuard (#7057) 2022-01-28 11:08:31 -08:00
Nikita SobolevandAlex Waygood 92d135a37c Use TypeGuard in ElementTree.pyi (#7059)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-01-28 11:33:45 +02:00
Nikita Sobolev 67766f282f Use import instead of re-definition of constants in subprocess (#7065) 2022-01-28 00:09:33 -08:00
Nikita Sobolev d43639d289 Improve asyncio.Future type (#7058) 2022-01-27 12:46:43 -08:00
Nikita Sobolev 97c490aec0 Fix sys.path_hooks type (#7049)
Docs: https://docs.python.org/3/library/sys.html#sys.path_hooks
2022-01-27 07:21:02 -08:00
Nikita Sobolev 9651f6fa04 Use better types for time.get_clock_info (#7040) 2022-01-26 11:09:31 +02:00
Nikita Sobolev c52bddb459 Use existing type alias in timeit (#7039) 2022-01-26 10:51:26 +02:00
Nikita Sobolev bfda5c640b Add mixins module to asyncio (#6789) 2022-01-25 12:53:55 +01:00
Nikita Sobolev 20508d05f4 Use ParamSpec in unittest.case (#7012) 2022-01-25 10:25:28 +01:00
Nikita Sobolev 03a7ac59c9 Use @overload for sunau.open (#7033) 2022-01-25 10:22:56 +01:00
Nikita Sobolev 9a89e09753 Removed unused # noqa: F403 (#7032) 2022-01-25 09:21:11 +01:00
Nikita Sobolev c8bfa511f7 Add TODO to support Concatenate in curses (#7018) 2022-01-24 12:13:18 +02:00
Nikita Sobolev dc176d70ec Use ParamSpec in unittest.async_case (#7011) 2022-01-23 13:54:06 -08:00
Nikita Sobolev 166d6c618c Use ParamSpec in profile.Profile.runcall (#7010) 2022-01-23 13:34:40 -08:00
Nikita Sobolev a4db42ee34 Use ParamSpec in pdb.runcall (#7009) 2022-01-23 13:34:34 -08:00
Nikita Sobolev 5b45601ed3 Use ParamSpec in cProfile.Profile.runcall (#7008) 2022-01-23 13:34:26 -08:00
Nikita Sobolev 2244bdfa15 Use ParamSpec in contextlib (#7007) 2022-01-23 13:22:05 -08:00
Nikita Sobolev 8502c8635f Use ParamSpec for bdb.Bdb.runcall (#7006) 2022-01-23 13:17:16 -08:00
Nikita Sobolev e6cf110100 Improve FunctionType.__get__ with @overload (#7005) 2022-01-23 12:38:09 -08:00
Nikita Sobolev 64bb71d7c1 Improve >, <, etc for UUID type (#7001) 2022-01-23 18:59:56 +01:00
Nikita Sobolev c339159cbf Improve wave.open type with overloads (#7000) 2022-01-23 14:39:31 +01:00
Nikita Sobolev 7ab84cfebf Fix writeframes type in wave (#6997) 2022-01-22 12:11:58 -08:00
Nikita Sobolev 16e9292561 Use ParamSpec for weakref.finalize (#6992) 2022-01-22 07:26:37 -08:00
Nikita Sobolev f5db1ccbbd Use tuple of Literal types in functools.pyi (#6915) 2022-01-21 20:51:52 -08:00
Nikita Sobolev 70e51f6f20 Use Literal types in zlib (#6988) 2022-01-21 08:50:30 -08:00
Nikita SobolevandAlex Waygood 7dd35556c4 Use more precise type for gettext.find (#6980)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-01-20 18:43:18 +02:00