Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ckk3 committed Nov 23, 2024
1 parent 7495f36 commit 0182a82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ htmlcov/*
junit*.xml
coverage.xml
.pytest_cache/
.mypy_cache

# Build and docs folder/files
build/*
Expand Down
8 changes: 3 additions & 5 deletions src/strawberry_sqlalchemy_mapper/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ def _connection_type_for(self, type_name: str) -> Type[Any]:
[
("edges", List[edge_type]), # type: ignore[valid-type]
],
# type: ignore[valid-type]
bases=(relay.ListConnection[lazy_type],),
bases=(relay.ListConnection[lazy_type],), # type: ignore[valid-type]
)
)
setattr(connection_type, _GENERATED_FIELD_KEYS_KEY, ["edges"])
Expand Down Expand Up @@ -523,7 +522,7 @@ async def resolve(self, info: Info):
relationship_key = tuple(
[
getattr(
self, local_remote_pairs_secondary_table_local.key),
self, str(local_remote_pairs_secondary_table_local.key)),
]
)

Expand Down Expand Up @@ -830,8 +829,7 @@ def convert(type_: Any) -> Any:
setattr(
type_,
attr,
# type: ignore[arg-type]
types.MethodType(func, type_),
types.MethodType(func, type_), # type: ignore[arg-type]
)

# Adjust types that inherit from other types/interfaces that implement Node
Expand Down

0 comments on commit 0182a82

Please sign in to comment.