https://github.com/pylint-dev/pylint/issues/9270 --- pylint-3.3.1/tests/functional/n/no/no_name_in_module.py.orig +++ pylint-3.3.1/tests/functional/n/no/no_name_in_module.py @@ -83,4 +83,4 @@ # This captures the original failure in https://github.com/pylint-dev/pylint/issues/6497 # only if numpy is installed. We are not installing numpy on CI (for now) from numpy.distutils.misc_util import is_sequence -from pydantic import BaseModel +from pydantic_foo import BaseModel --- pylint-3.3.1/tests/functional/d/dataclass/dataclass_with_field.py.orig +++ pylint-3.3.1/tests/functional/d/dataclass/dataclass_with_field.py @@ -4,7 +4,7 @@ from dataclasses import field from typing import List -from pydantic.dataclasses import dataclass # [import-error] +from pydantic_foo.dataclasses import dataclass # [import-error] class Item: --- pylint-3.3.1/tests/functional/d/dataclass/dataclass_with_field.txt.orig +++ pylint-3.3.1/tests/functional/d/dataclass/dataclass_with_field.txt @@ -1 +1 @@ -import-error:7:0:7:42::Unable to import 'pydantic.dataclasses':UNDEFINED +import-error:7:0:7:46::Unable to import 'pydantic_foo.dataclasses':UNDEFINED