Skip to content

Commit

Permalink
Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 28, 2024
1 parent f14509d commit 353d0aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setuptools/compat/py312.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from __future__ import annotations

import sys

if sys.version_info >= (3, 12, 4):
# Python 3.13 should support `.pth` files encoded in UTF-8
# See discussion in https://github.com/python/cpython/issues/77102
PTH_ENCODING = "utf-8"
PTH_ENCODING: str | None = "utf-8"
else:
from .py39 import LOCALE_ENCODING

Expand Down

0 comments on commit 353d0aa

Please sign in to comment.