Skip to content

Commit 0182a82

Browse files
committed
fix types
1 parent 7495f36 commit 0182a82

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ htmlcov/*
3737
junit*.xml
3838
coverage.xml
3939
.pytest_cache/
40+
.mypy_cache
4041

4142
# Build and docs folder/files
4243
build/*

src/strawberry_sqlalchemy_mapper/mapper.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,7 @@ def _connection_type_for(self, type_name: str) -> Type[Any]:
327327
[
328328
("edges", List[edge_type]), # type: ignore[valid-type]
329329
],
330-
# type: ignore[valid-type]
331-
bases=(relay.ListConnection[lazy_type],),
330+
bases=(relay.ListConnection[lazy_type],), # type: ignore[valid-type]
332331
)
333332
)
334333
setattr(connection_type, _GENERATED_FIELD_KEYS_KEY, ["edges"])
@@ -523,7 +522,7 @@ async def resolve(self, info: Info):
523522
relationship_key = tuple(
524523
[
525524
getattr(
526-
self, local_remote_pairs_secondary_table_local.key),
525+
self, str(local_remote_pairs_secondary_table_local.key)),
527526
]
528527
)
529528

@@ -830,8 +829,7 @@ def convert(type_: Any) -> Any:
830829
setattr(
831830
type_,
832831
attr,
833-
# type: ignore[arg-type]
834-
types.MethodType(func, type_),
832+
types.MethodType(func, type_), # type: ignore[arg-type]
835833
)
836834

837835
# Adjust types that inherit from other types/interfaces that implement Node

0 commit comments

Comments
 (0)