Skip to content

Commit 93d08af

Browse files
authored
Fixes for typeshed improvements
1 parent ef5a744 commit 93d08af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/trio/_core/_concat_tb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ def copy_tb(base_tb: TracebackType, tb_next: TracebackType | None) -> TracebackT
6464
# which it already is, so we're done. Otherwise, we have to actually
6565
# do some work:
6666
if tb_next is not None:
67-
_ctypes.Py_INCREF(tb_next) # type: ignore[attr-defined]
67+
_ctypes.Py_INCREF(tb_next)
6868
c_new_tb.tb_next = id(tb_next)
6969

7070
assert c_new_tb.tb_frame is not None
71-
_ctypes.Py_INCREF(base_tb.tb_frame) # type: ignore[attr-defined]
71+
_ctypes.Py_INCREF(base_tb.tb_frame)
7272
old_tb_frame = new_tb.tb_frame
7373
c_new_tb.tb_frame = id(base_tb.tb_frame)
74-
_ctypes.Py_DECREF(old_tb_frame) # type: ignore[attr-defined]
74+
_ctypes.Py_DECREF(old_tb_frame)
7575

7676
c_new_tb.tb_lasti = base_tb.tb_lasti
7777
c_new_tb.tb_lineno = base_tb.tb_lineno

src/trio/socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
globals().update(
2828
{
2929
_name: getattr(_stdlib_socket, _name)
30-
for _name in _stdlib_socket.__all__ # type: ignore
30+
for _name in _stdlib_socket.__all__
3131
if _name.isupper() and _name not in _bad_symbols
3232
},
3333
)

0 commit comments

Comments
 (0)