Skip to content

Commit 0814553

Browse files
kschwabhramezani
andauthored
Fix PydanticModel type checking. (#659)
Co-authored-by: Hasan Ramezani <[email protected]>
1 parent be11824 commit 0814553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydantic_settings/sources/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
from collections.abc import Sequence
66
from pathlib import Path
7-
from typing import TYPE_CHECKING, Any, TypeVar, Union
7+
from typing import TYPE_CHECKING, Any, Union
88

99
if TYPE_CHECKING:
1010
from pydantic._internal._dataclasses import PydanticDataclass
1111
from pydantic.main import BaseModel
1212

13-
PydanticModel = TypeVar('PydanticModel', bound=Union[PydanticDataclass, BaseModel])
13+
PydanticModel = Union[PydanticDataclass, BaseModel]
1414
else:
1515
PydanticModel = Any
1616

0 commit comments

Comments
 (0)