Skip to content

Commit 3c25c95

Browse files
committed
Remove type: ignores that are no longer necessary
1 parent 231855b commit 3c25c95

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Lib/_pyrepl/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def do(self) -> None:
456456
class show_history(Command):
457457
def do(self) -> None:
458458
from .pager import get_pager
459-
from site import gethistoryfile # type: ignore[attr-defined]
459+
from site import gethistoryfile
460460

461461
history = os.linesep.join(self.reader.history[:])
462462
self.reader.console.restore()

Lib/_pyrepl/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from __future__ import annotations
2121

22-
import _colorize # type: ignore[import-not-found]
22+
import _colorize
2323

2424
from abc import ABC, abstractmethod
2525
import ast
@@ -162,7 +162,7 @@ def __init__(
162162
*,
163163
local_exit: bool = False,
164164
) -> None:
165-
super().__init__(locals=locals, filename=filename, local_exit=local_exit) # type: ignore[call-arg]
165+
super().__init__(locals=locals, filename=filename, local_exit=local_exit)
166166
self.can_colorize = _colorize.can_colorize()
167167

168168
def showsyntaxerror(self, filename=None, **kwargs):

Lib/_pyrepl/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from contextlib import contextmanager
2727
from dataclasses import dataclass, field, fields
2828
import unicodedata
29-
from _colorize import can_colorize, ANSIColors # type: ignore[import-not-found]
29+
from _colorize import can_colorize, ANSIColors
3030

3131

3232
from . import commands, console, input

Lib/_pyrepl/readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from dataclasses import dataclass, field
3333

3434
import os
35-
from site import gethistoryfile # type: ignore[attr-defined]
35+
from site import gethistoryfile
3636
import sys
3737
from rlcompleter import Completer as RLCompleter
3838

0 commit comments

Comments
 (0)