Commit Graph

31 Commits

Author SHA1 Message Date
Alex Waygood
a0b41959ec stdlib: fix many attributes which are read-only at runtime but read-write in the stub (#7395) 2022-02-27 16:23:09 -08:00
Alex Waygood
3afc0b1ade Update inspect stubs for Python 3.11 (#7342) 2022-02-21 16:36:01 +01:00
Alex Waygood
fbc279e3f5 stdlib: Add many missing dunder overrides (#7231) 2022-02-16 06:25:47 -08:00
Alex Waygood
0e185f4087 Improve inspect stubs (#7050) 2022-01-27 09:04:48 -08:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Nikita Sobolev
9c8f0d1240 Restore Literal for CO_* constants in inspect.pyi (#6766)
First pushed in #6764, accidentally reverted in #6765
2021-12-30 17:00:35 -06:00
Nikita Sobolev
caee9b0bea inspect.Parameter: several attributes are read-only (#6765) 2021-12-30 16:02:46 -06:00
Nikita Sobolev
113cd0d49c Use Literal for CO_* constants in inspect.pyi (#6764) 2021-12-30 22:50:10 +01:00
Nikita Sobolev
026b219a1d Literal types in inspect: getcoroutinestate and getgeneratorstate (#6759)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2021-12-30 20:40:50 +02:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau
3fb2bcd4c1 Restore stubtest 0.930 (#6663) 2021-12-22 20:18:19 -08:00
Jelle Zijlstra
868732098e inspect._ParameterKind.description is a property (#6587) 2021-12-15 13:39:42 +02:00
Jukka Lehtosalo
78806f5402 Use AbstractSet instead of set in random and inspect (#6574) 2021-12-13 17:26:28 +01:00
Akuli
2b702233c6 tests/check_new_syntax.py: check order of if statements (#6423) 2021-11-28 08:04:46 -08:00
Akuli
a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Alex Waygood
9707cb00f6 Python 3.11 removals in stdlib (#6374)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-25 19:34:12 +02:00
Alex Waygood
5c8e68f0eb Use lowercase set, frozenset and deque where possible (#6346) 2021-11-19 15:05:45 -08:00
KotlinIsland
7d9d670ff9 add TypeGuard to some inspect functions (#6107) 2021-11-09 20:08:14 +01:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
KotlinIsland
b7d1d099d9 add TypeGuard to coroutines.iscoroutine (#6105)
make CoroutineType extend Coroutine
2021-10-09 17:01:36 +02:00
Ju4tCode
328d09a9a5 Fix error type for inspect Parameter/Signature empty (#6073) 2021-09-27 13:49:22 +02:00
Anton Grübel
caa642dd3b improve typing in inspect (#6020) 2021-09-18 20:11:55 -07:00
Bas van Beek
b9e1d7d522 Replace Mapping with types.MappingProxyType (#6013)
Mark `Signature.parameters` and `.return_annotation` as read-only properties
2021-09-09 09:58:53 +02:00
Oleg Höfling
64f481189f drop ellipsis assignments from module vars, classvars and instance attrs (#5914)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-11 19:26:58 +02:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
Oleg Höfling
41630486e3 Add Typeguard back to inspect.isclass() return type (#5829) 2021-08-02 09:19:11 +02:00
Jelle Zijlstra
5fe2459779 Make SigParameter.replace and Signature.replace return Self (#5689) 2021-06-24 18:01:58 +02:00
Jelle Zijlstra
b2e3c4f1d7 improve inspect.pyi (#5473)
- Use TypeGuard for various is* functions (refer to #5406)
- Use collections.abc and builtin containers
2021-05-29 19:32:39 +02:00
Shantanu
2dd0871c0c inspect: add missing definitions (#5321) 2021-05-02 17:00:46 -07:00
Shantanu
21e174a192 inspect: update for py310 (#5296) 2021-05-02 06:21:03 -07:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00