Commit Graph
100 Commits
Author SHA1 Message Date
Stephen Morton cc14cc6c2a fix up some C signatures (#14624)
a few issues exposed after https://github.com/python/mypy/pull/18259 was merged
2025-08-22 06:58:55 -07:00
Stephen Morton b7f7335f82 move platform.platorm on the allowlist to don't fix section (#14625) 2025-08-22 06:56:42 -07:00
Stephen Morton 9b5b3ecb0a clean up allowlists (#14612) 2025-08-21 10:54:17 +02:00
Stephen Morton d057b490d5 xml.etree: remove pytype workaround (#14602) 2025-08-20 16:56:16 -07:00
Stephen Morton 846d167f51 Fix default of dict.get (#13222) 2025-03-09 13:44:27 +01:00
Stephen Morton 56fa438a27 Decouple types.DynamicClassAttribute from property (#13276) 2025-03-07 19:08:27 +01:00
Stephen Morton 2a030be2e9 fix ctypes.GetLastError (#13379) 2025-01-09 19:03:56 -08:00
Stephen Morton e55c13a612 update allowlist comment for SupportsAbs and SupportsRound (#13380)
The answer to the question is that mypy infers it just fine, but
stubtest doesn't check for attributes inherited from the metaclass
because that's almost never what we want. In this case,
the runtime implementation doesn't get __type_params__ from
builtins.type either. It's actually defined for the class due to
the use of PEP-695 syntax.
2025-01-09 14:00:54 -08:00
Stephen Morton 432d8db627 fix gevent.select.poll (#13335)
fixes #13330
2024-12-29 17:19:48 -08:00
Stephen Morton 801c5c9495 improve identity of threading module's Lock and RLock (#12966) 2024-12-28 08:00:04 -08:00
Stephen Morton a4b7c36366 add missing things in multiprocessing (#13153) 2024-12-27 21:13:30 -08:00
Stephen Morton 87267342d5 add asyncio.__all__ (#13038) 2024-12-27 20:58:40 -08:00
Stephen Morton abed9a8b55 Protocol inheritance for typing_extensions.SupportsX classes (#13010)
At runtime, depending on the version of python,
these inherit from typing_extenstions.Protocol
instead of typing.Protocol.
2024-12-27 20:53:44 -08:00
Stephen Morton 4c5f85be88 fixes for unittest.runner (#13205) 2024-12-27 20:09:30 -08:00
Stephen Morton 43f637b5e2 add _GeneratorContextManagerBase.__init__ (#13246)
I think that #6676 showed that Paramspec didn't work, but that
wasn't actually the fault of _GeneratorContextManagerBase.
2024-12-27 20:04:57 -08:00
Stephen Morton b29e26a628 select.poll is not available on windows (#13243) 2024-12-27 20:04:24 -08:00
Stephen Morton 897b350729 fix deprecated ast classes (#13285) 2024-12-27 20:01:53 -08:00
Stephen Morton d8822689f7 fix stubs for asyncio.BaseEventLoop.subprocess_exec (#13220) 2024-12-25 14:25:39 -08:00
Stephen Morton e5c5318115 rename ctypes._FuncPtr (#13290)
fixes https://github.com/python/typeshed/issues/13289
2024-12-24 10:16:57 -08:00
Stephen Morton aaa8a7c47e ssl.Purpose.__new__ comes from Enum (#13237) 2024-12-24 09:48:08 -08:00
Stephen Morton 3944c7839e Add __hash__ for a bunch of types that set it to None (#13286) 2024-12-23 23:16:22 -08:00
Stephen Morton 1f0a86ceb4 add codecs.StreamRecoder attributes (#13291) 2024-12-23 23:14:23 -08:00
Stephen Morton 17408ee538 fix the __init__ of several C-classes (#13211) 2024-12-23 10:55:51 -08:00
Stephen Morton ea91db2380 fix update method of WeakKeyDictionary and WeakValueDictionary (#13249) 2024-12-22 16:53:55 -08:00
Stephen Morton d8b7ad6e89 fixing up ctypes.memmove and ctypes.memset (#13252) 2024-12-22 16:53:03 -08:00
Stephen Morton e744b2eb34 move numbers.Number.__hash__ and tarfile.TarFile.errors to don't fix (#13254) 2024-12-22 16:50:06 -08:00
Stephen Morton 097581ea47 Update to mypy 1.14 (#13272) 2024-12-20 17:29:38 -08:00
Stephen Morton 8e31597fa5 add BaseListProxy.__imul__ (#13266) 2024-12-19 16:04:00 -08:00
Stephen Morton 1964076a8e move a couple deliberate omissions to don't fix (#13267) 2024-12-19 01:11:27 +01:00
Stephen Morton bd728fbfae use Literal[_MISSING_TYPE.MISSING] for dataclasses.field defaults (#13256) 2024-12-18 19:21:31 +01:00
Stephen Morton 7c7f91233f DevpollSelector is Solaris only (#13242) 2024-12-14 19:53:40 -08:00
Stephen Morton fc11e83510 move two more allowlist entries to can't fix (#13247) 2024-12-14 06:17:18 -08:00
Stephen Morton acebd50eee adjusting overload of fractions.Fraction.__new__ (#13241) 2024-12-14 06:13:00 -08:00
Stephen Morton 364fd7d18f a few more allowlist entries moved to don't fix (#13236) 2024-12-13 14:59:47 -08:00
Stephen Morton 1ec5ccfdac move configparser.SectionProxy allowlist to don't fix section (#13234) 2024-12-12 13:38:21 -08:00
Stephen Morton dc6b89c793 adjust allowlist for urllib.response.addbase (#13219)
I don't think we need a regex for just two items
2024-12-07 19:54:26 -08:00
Stephen Morton 4aad825db3 fix the weird special builtins (#13213) 2024-12-08 00:18:15 +00:00
Stephen Morton 1bf8d501d1 ctypes.CDLL._func_restype_ is a type, not an instance (#13206) 2024-12-06 11:35:58 +01:00
Stephen Morton 6b98467337 Add xml.sax.expatreader (#13188) 2024-12-05 20:16:49 +01:00
Stephen Morton 1798badcdd update for the new patch releases (#13196) 2024-12-05 18:24:07 +01:00
Stephen Morton 9e033f3287 allowlist updates for new patch releases of 3.12 and 3.13 (#13194) 2024-12-04 12:56:12 -08:00
Stephen MortonandAkuli ebe2558c2c add tkinter differences for 3.13 (#13156)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-12-04 22:39:49 +02:00
Stephen Morton d70fad09dd selectors.KqueueSelector is documented as BSD-only (#13183) 2024-12-03 21:59:39 -08:00
Stephen Morton fe26deaee6 a close reading of the pickle module (#12971) 2024-12-03 20:03:54 -08:00
Stephen Morton 6d32917d7f Move a couple allowlist entries to "don't fix" (#13187) 2024-12-03 15:36:46 -08:00
Stephen Morton 5425311939 sort platform allowlists (#13179) 2024-12-03 22:25:04 +01:00
Stephen Morton 5461d37acf de-duplicate _dummy_threading (#13063)
While technically it's an independent implementation, the classes
all call themselves `threading.*` and have the same interfaces.

Except for local, which is from _threading_local instead.
2024-12-03 13:44:06 +01:00
Stephen Morton 4890153e61 add zipfile._path.glob (#13154) 2024-12-03 13:42:15 +01:00
Stephen Morton f3dfc90741 sys.tracebacklimit can be set to None (#13173) 2024-12-03 13:16:45 +01:00
Stephen Morton a980fc5308 sort the common allowlist (#13164) 2024-12-03 13:07:48 +01:00
Stephen Morton d5b0e4aa35 fixes to select module constants (#13174) 2024-12-03 12:45:10 +01:00
Stephen Morton c606b4f8ad add socket.AF_DECnet value (#13172) 2024-12-03 09:08:49 +01:00
Stephen Morton d9e5333ab8 sort security backport allowlist entries (#13165) 2024-12-03 09:07:09 +01:00
Stephen Morton c713947801 sort allowlists by version more consistently (#13160)
This makes it easier to ensure that categorization and comments
are in sync between one allowlist and another.
2024-12-02 17:29:07 +01:00
Stephen Morton 2ccc53bb67 Add a couple missing tkinter things (#13149) 2024-11-29 03:04:31 +02:00
Stephen Morton 7a0f6837e9 add missing ctypes things (#13147) 2024-11-28 12:09:47 -08:00
Stephen Morton 5c7d51f3b8 add missing attributes of _thread_local._localimpl (#13143)
add missing attributes of _thread_local._localimpl
2024-11-28 07:10:37 -08:00
Stephen Morton 00c0c8d984 cleaning up termios constants (#13138) 2024-11-28 07:04:05 -08:00
Stephen Morton 93a31af781 add modulefinder.test (#13148) 2024-11-28 07:03:06 -08:00
Stephen Morton e22419c0ed add turtle.TNavigator.speed (#13150) 2024-11-28 07:01:57 -08:00
Stephen Morton 0969d25a1f Cleaning up os/posix module constants (#13134) 2024-11-28 06:23:44 +01:00
Stephen Morton 8c666665f7 add missing attributes in codecs module (#13145) 2024-11-27 20:23:50 -08:00
Stephen Morton 775f8671b3 add bz2.BZ2File.peek (#13144) 2024-11-27 19:56:57 -08:00
Stephen Morton b286a59514 add configparser.RawConfigParser.converters (#13146) 2024-11-27 19:55:22 -08:00
Stephen Morton 11ec1a10fd Improve the SyntaxError constructor; add SyntaxError.print_file_and_line (#13141) 2024-11-27 22:21:48 +00:00
Stephen Morton 696e631330 remove broad allowlist entry (#13139) 2024-11-27 12:44:04 -08:00
Stephen Morton 4ce28d2539 add encodings.ascii and encodings.latin_1 (#13113) 2024-11-26 21:01:33 -08:00
Stephen Morton c53442c30d add encodings.raw_unicode_escape and encodings.unicode_escape (#13114) 2024-11-26 20:45:48 -08:00
Stephen Morton 3d00ca80f1 add byte-to-byte encodings submodules (#13120) 2024-11-26 20:34:39 -08:00
Stephen Morton 3f9c6d5845 Add a batch of encodings submodules (#13112)
Also align encodings.utf_8 so the stub file is formatted the same
as these others that match
2024-11-26 20:24:29 -08:00
Stephen Morton 8d7436b3ef add encodings.utf_16 and encodings.utf_32 (#13121) 2024-11-26 20:03:53 -08:00
Stephen Morton 900e5c5b1b Add encodings.mbcs and encodings.oem (#13122) 2024-11-26 20:02:49 -08:00
Stephen Morton 720946c9d2 add the remaining encodings submodules (#13123) 2024-11-26 20:00:19 -08:00
Stephen Morton ceec43659c add _json.encode_basestring (#13131) 2024-11-26 19:57:51 -08:00
Stephen Morton 6cbcecd01c Add a few missing things from _thread (#13132) 2024-11-26 19:57:01 -08:00
Stephen Morton 410081e820 fix the length of platform.uname_result (#13068)
It should be a 6-tuple, once processor is added. This makes sure mypy understands that.

Fixes https://github.com/python/typeshed/issues/13064
2024-11-25 11:53:25 -08:00
Stephen Morton 0521fce9f9 Avoid using _typeshed.StrEnum (#13062) 2024-11-25 18:35:32 +01:00
Stephen Morton 4944f1b12c add sqlite3.dump (#13085) 2024-11-25 18:14:45 +01:00
Stephen Morton d14133b3a6 add the undocumented ctypes.macholib module (#13086) 2024-11-25 16:59:59 +01:00
Stephen Morton 927302347f add another batch of encoding submodules (#13088) 2024-11-25 07:31:06 -08:00
Stephen Morton 0a541ad47f add multi-byte encodings submodules (#13093) 2024-11-25 12:14:59 +01:00
Stephen Morton 37eba41407 Add a bunch of encodings submodules (#13087)
each file in this set is the exact same
2024-11-24 07:56:36 -08:00
Stephen Morton 4059f3edb9 add json.scanner module (#13084) 2024-11-24 07:54:45 -08:00
Stephen MortonandJelle Zijlstra f9475acbe0 clean up ipaddress allowlist entries (#13079)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-11-24 07:54:12 -08:00
Stephen Morton 8a485331c9 address some multiprocessing allowlist entries (#13080) 2024-11-23 16:37:22 -08:00
Stephen Morton 9614cc2d88 Fix some CAPI annotations (#13081) 2024-11-24 00:00:49 +00:00
Stephen Morton 7ab6620c0f fix argument for ctypes.string_at and ctypes.wstring_at (#13075) 2024-11-23 05:11:17 -08:00
Stephen Morton 982fb8358b __reversed__ on dict views (#13073)
KeysView doesn't have __reversed__, but dict_keys does. When this
was added to typeshed, we didn't have dict_keys as a separate type.
2024-11-23 05:09:37 -08:00
Stephen Morton ba9116c684 mark sys.UnraisableHookArgs as type_check_only (#13077)
mark sys.UnraisableHookArgs as type_check_only
2024-11-23 11:16:45 +00:00
Stephen Morton ff75709586 remove duplicate allowlist entry (#13076)
tkinter.Text.count is in both common.txt and py313.txt
2024-11-23 11:03:54 +00:00
Stephen Morton b5ce9c5069 remove duplicate allowlist entry (#13074)
asyncio.base_events.BaseEventLoop.subprocess_exec is in both
common.txt and py310.txt for some reason
2024-11-22 22:26:08 -08:00
Stephen Morton 05b969f975 add missing _ctypes functions (#13067) 2024-11-22 16:07:12 +01:00
Stephen Morton 1af850d2b0 remove _posixsubprocess.cloexec_pipe (#13066)
removed from cpython in 2013...

https://github.com/python/cpython/commit/daf455554bc21b6b5df0a016ab5fa639d36cc595
2024-11-21 19:53:37 -08:00
Stephen Morton bb0e1e2c16 _csv.Reader and _csv.Writer (#13057) 2024-11-21 11:13:53 +01:00
Stephen Morton d84476ca57 add os.__all__ (#13052) 2024-11-21 10:56:21 +01:00
Stephen Morton 32f48a5eae add several NamedTuple base classes (#12987) 2024-11-21 10:52:31 +01:00
Stephen Morton 0fb3a092c7 Miscellaneous type_check_only annotations (#13058) 2024-11-21 08:41:38 +00:00
Stephen Morton ae7f6ea59c clean up allowlist for gevent (#13056) 2024-11-20 19:43:11 -08:00
Stephen Morton fd6f10c8d1 cpython -> CPython (#13050) 2024-11-20 19:51:30 +01:00
Stephen Morton 308a09f056 Clean up/rework socket constants and add __all__ (#13044) 2024-11-20 14:05:11 +01:00