Skip to content

BUG: fix import error against Python's optimized mode #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions array_api_strict/_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ def set_array_api_strict_flags(
set(default_extensions))

# We have to do this separately or it won't get added as the docstring
set_array_api_strict_flags.__doc__ = set_array_api_strict_flags.__doc__.format(
supported_versions=supported_versions,
default_version=default_version,
default_extensions=default_extensions,
draft_version=draft_version,
)
if set_array_api_strict_flags.__doc__ is not None:
set_array_api_strict_flags.__doc__ = set_array_api_strict_flags.__doc__.format(
supported_versions=supported_versions,
default_version=default_version,
default_extensions=default_extensions,
draft_version=draft_version,
)

def get_array_api_strict_flags():
"""
Expand Down
Loading