Skip to content

Commit

Permalink
Try fixing mypy error by declaring posix = None
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbkim committed Jan 13, 2025
1 parent ae10604 commit 383b6f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/_pyrepl/unix_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
from .unix_eventqueue import EventQueue
from .utils import wlen

# mypy will infer this module is optional
posix = None

try:
import posix
except ImportError:
Expand Down

0 comments on commit 383b6f1

Please sign in to comment.