Skip to content

Commit e9c3b57

Browse files
committed
chore: fix mypy errors with pydantic
I did add pydantic.mypy plugin but the Settings class was giving an InternalError from the library. I've opened an [issue](python/mypy#18612) and removed the plugin until it worked
1 parent fc16017 commit e9c3b57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/social/user/infra/router/signup_user_router.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def signup_user(user_id: str, request: UserSignupRequest) -> JSONResponse:
2323
username=request.username,
2424
email=request.email,
2525
)
26-
session_maker = SessionMaker(Settings())
26+
session_maker = SessionMaker(Settings()) # type: ignore
2727
repository = PostgresUserRepository(session_maker=session_maker)
2828
user_signup = UserSignup(repository)
2929

tests/social/user/infra/persistence/test_postgres_user_repository.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class TestPostgresUserRepository:
1414
@classmethod
1515
def setup_class(cls) -> None:
16-
cls.session_maker = SessionMaker(settings=Settings())
16+
cls.session_maker = SessionMaker(settings=Settings()) # type: ignore
1717
cls.session_maker.create_tables()
1818

1919
@classmethod

0 commit comments

Comments
 (0)