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

Drop support for Python 3.10 #963

Open
drdavella opened this issue Jan 2, 2025 · 0 comments
Open

Drop support for Python 3.10 #963

drdavella opened this issue Jan 2, 2025 · 0 comments

Comments

@drdavella
Copy link
Member

Widen the window of support to include 3.11 through 3.14. When we do this we should also update the unit testing matrix in CI/CD.

Also, we can get rid of this warning:

DeprecationWarning: 'importlib.abc.Traversable' is deprecated and slated for removal in Python 3.14

The patch looks like this:

diff --git a/src/codemodder/codemods/base_codemod.py b/src/codemodder/codemods/base_codemod.py
index 7a458c2..82594f8 100644
--- a/src/codemodder/codemods/base_codemod.py
+++ b/src/codemodder/codemods/base_codemod.py
@@ -7,7 +7,7 @@ from concurrent.futures import ThreadPoolExecutor
 from dataclasses import dataclass, field
 from enum import Enum
 from functools import cached_property
-from importlib.abc import Traversable
+from importlib.resources.abc import Traversable
 from pathlib import Path

 from codemodder.code_directory import file_line_patterns
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

No branches or pull requests

1 participant