Skip to content
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

Fix pep 585 and 604 (ruff UP006, UP007) issues #2124

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Mar 11, 2024

Issue

Part of #2117

Description

For typing standard containers, use the new generic syntax, not the typing module versions. Use | notation instead of Optional and Union
Old methods are deprecated.

Commit generated using Ruff's auto fix

Testing & Acceptance Criteria

make ruff
and
make mypy

Should pass

Documentation

Not needed yet

@coveralls
Copy link

coveralls commented Mar 11, 2024

Coverage Status

coverage: 74.274% (-0.03%) from 74.299%
when pulling cb37605 on 2117-ruff-rules-up006
into db14d23 on main.

@samtygier-stfc samtygier-stfc marked this pull request as ready for review March 12, 2024 16:29
@samtygier-stfc samtygier-stfc changed the title Fix non-pep585-annotation (UP006) issues Fix pep 585 and 604 (ruff UP006, UP007) issues Mar 12, 2024
@JackEAllen JackEAllen self-requested a review March 13, 2024 09:12
Copy link
Collaborator

@JackEAllen JackEAllen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, nice to see we are moving closer to modernising the codebase typing a little.

@JackEAllen JackEAllen added this pull request to the merge queue Mar 13, 2024
Merged via the queue into main with commit bf69a70 Mar 13, 2024
8 checks passed
@JackEAllen JackEAllen deleted the 2117-ruff-rules-up006 branch March 13, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants