-
Notifications
You must be signed in to change notification settings - Fork 69
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
Drop support for Python 3.9, drop Optional
and Union
from type hints
#908
Drop support for Python 3.9, drop Optional
and Union
from type hints
#908
Conversation
19a2322
to
7d74f45
Compare
Diff for the config file really shows how much more readable things are now: |
@larsoner I assume this line / regexp needs to be changed:
to accommodate the way the type for noise_cov: (
...
) = ... But I couldn't get it to work so far :( |
"^" # The line starts, then is followed by | ||
r"(\w+): " # annotation syntax (name captured by the first group), | ||
"(?:" # then the rest of the line can be (in a non-capturing group): | ||
".+ = .+" # 1. a standard assignment | ||
"|" # 2. or | ||
r"Literal\[" # 3. the start of a multiline type annotation like "a: Literal[" | ||
"|" # 4. or | ||
r"\(" # 5. the start of a multiline 3.9+ type annotation like "a: (" | ||
")" # Then the end of our group | ||
"$", # and immediately the end of the line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoechenberger this should work, make more sense?
Marking for merge-when-green, we'll see if my |
Fixes #906
@larsoner I simply had to change the min. Python version in
pyproject.toml
and runruff
; only two additional manual interventions were required after that. Super nice.Before merging …
docs/source/changes.md
)