Skip to content

Commit

Permalink
Fix issue on Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Aug 20, 2024
1 parent 73baf13 commit 4cdecd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extra_platforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def cache(user_function):
return lru_cache(maxsize=None)(user_function)


from typing import FrozenSet

# XXX Exposing everything at package level motivates platforms and groups to have a
# unique and unambiguous ID. This constraint is enforced at the data-level and checked
# in unittests.
Expand All @@ -59,7 +61,7 @@ def cache(user_function):
"""


ALL_OS_LABELS: frozenset[str] = frozenset((p.name for p in ALL_PLATFORMS.platforms))
ALL_OS_LABELS: FrozenSet[str] = frozenset((p.name for p in ALL_PLATFORMS.platforms))

Check failure on line 64 in extra_platforms/__init__.py

View workflow job for this annotation

GitHub Actions / autofix / Format Python

Ruff (F405)

extra_platforms/__init__.py:64:60: F405 `ALL_PLATFORMS` may be undefined, or defined from star imports
"""Sets of all recognized labels."""


Expand Down

0 comments on commit 4cdecd4

Please sign in to comment.