Skip to content

Commit

Permalink
Rename MYPY as TYPE_CHECKING (see python/mypy#18443)
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Jan 11, 2025
1 parent 4e1568f commit 32af4fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tomli/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
match_to_number,
)

MYPY = False
if MYPY: # pragma: no cover
TYPE_CHECKING = False
if TYPE_CHECKING:
from collections.abc import Iterable
from typing import IO, Any, Final

Expand Down
4 changes: 2 additions & 2 deletions src/tomli/_re.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from functools import lru_cache
import re

MYPY = False
if MYPY: # pragma: no cover
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Any, Final

from ._types import ParseFloat
Expand Down

0 comments on commit 32af4fd

Please sign in to comment.