Skip to content

Allow to import 'Sequence' from 'typing' rather than from 'collections.abc' #3383

Answered by charliermarsh
p-j-smith asked this question in Q&A
Discussion options

You must be logged in to vote

A more "sustainable" option might be to set your target-version to py38, like:

[tool.ruff]
target-version = "py38"

That should avoid any rewrites that aren't compatible with Python 3.8!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@charliermarsh
Comment options

@p-j-smith
Comment options

@charliermarsh
Comment options

@p-j-smith
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by charliermarsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants