Skip to content

Drop support for Python 3.10 #963

@drdavella

Description

@drdavella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions