M Bussonnier
8bd178e0c6
Fix: incorrect type for Bdb.format_stack_entry ( #13485 )
...
```python
def format_stack_entry(self, frame_lineno, lprefix=': '):
...
frame, lineno = frame_lineno
```
The type of `frame_lineno` is `tuple[FrameType, int]` not `int`,
understandably, since the type of `frame_lineno` can be interprted as
the line number of the frame. But looking at the implementation of
`Bdb.format_stack_entry`, it is clear that `frame_lineno` is a tuple.
It is also necessary to somehow pass a frame to `format_stack_entry` if
we want it to be formatted...
2025-02-09 21:32:56 +00:00
Alex Waygood
5caaf2e1fb
Fix stdlib stubtest for latest Python patch releases ( #13464 )
2025-02-05 23:33:27 +00:00
Max Muoto
0df6028dc8
Use Final for Constant Literals in the stdlib ( #12332 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-07-15 18:07:34 +01:00
Max Muoto
c01bd592d6
Fix 3.13 bdb issues ( #12324 )
2024-07-11 17:07:34 -07:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
buermarc
56b0c8b42e
Lib/bdb.py: add some missing optional str in return ( #11231 )
2024-01-04 13:17:07 +01:00
Alex Waygood
8e7b78a8e8
Bump black to 23.1.0 ( #9647 )
2023-02-01 06:06:04 -08:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Alex Waygood
e2ce7c6344
stdlib: audit more callback annotations ( #8209 )
2022-07-19 07:07:25 -07:00
Shantanu
8968eb4fc9
bdb: update for py311 ( #7927 )
2022-05-23 09:20:48 +02:00
Alex Waygood
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Sebastian Rittau
321359ca31
Add _typeshed.(Opt)ExcInfo ( #7645 )
2022-04-18 00:28:43 +01:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Nikita Sobolev
8502c8635f
Use ParamSpec for bdb.Bdb.runcall ( #7006 )
2022-01-23 13:17:16 -08:00
Alex Waygood
aea52b35d1
Remove nearly all __str__ and __repr__ methods from typeshed ( #6968 )
2022-01-20 00:45:11 +01:00
Nikita Sobolev
afb265ce84
Improve bdb with Literal and __all__ ( #6844 )
2022-01-09 18:40:35 +02:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Alex Waygood
5c8e68f0eb
Use lowercase set, frozenset and deque where possible ( #6346 )
2021-11-19 15:05:45 -08:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07: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
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02: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