Skip to content

Commit

Permalink
Install tomli
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau committed Nov 25, 2024
1 parent 032ce3d commit c8fde86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ uv==0.4.26

# Utilities for typeshed infrastructure scripts.
ts_utils @ file:lib

# Libraries required by third-party stubs
tomli; python_version < "3.11" # setuptools.compat.py310
5 changes: 2 additions & 3 deletions stubs/setuptools/setuptools/compat/py310.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ __all__ = ["tomllib"]
if sys.version_info >= (3, 11):
import tomllib
else:
# This is actually vendored, but CI is flaky when using the following line:
# import tomli as tomllib
tomllib: Any
# This is actually vendored
import tomli as tomllib

0 comments on commit c8fde86

Please sign in to comment.