Skip to content

Commit

Permalink
chore: pylint/pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
matmoncon committed Jan 22, 2024
1 parent 1576459 commit ef2a086
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyneo4j_ogm/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ def _model_serializer(self, serializer: Any, info: SerializationInfo) -> Any:

return serialized

@model_validator(mode="before")
@classmethod
@model_validator(mode="before") # type: ignore
def _model_validator(cls, values: Any) -> Any:
relationship_properties = getattr(cls, "_relationship_properties", set())

Expand Down
3 changes: 2 additions & 1 deletion pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"reportIncompatibleVariableOverride": false,
"reportInvalidTypeForm": false
"reportInvalidTypeForm": false,
"reportIncompatibleMethodOverride": false
}
4 changes: 3 additions & 1 deletion tests/integration/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ async def test_invalid_indexes(client: Pyneo4jClient):
)

with pytest.raises(InvalidEntityType):
await client.create_text_index("invalid_entity_index", "invalid entity", ["prop_a", "prop_b"], ["Test", "Node"]) # type: ignore
await client.create_text_index(
"invalid_entity_index", "invalid entity", ["prop_a", "prop_b"], ["Test", "Node"] # type: ignore
)

with pytest.raises(InvalidEntityType):
await client.create_point_index(
Expand Down

0 comments on commit ef2a086

Please sign in to comment.