Skip to content

Commit ce922c4

Browse files
committed
ruff linting fix
1 parent 7b1aea2 commit ce922c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ellar/core/modules/ref/plain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(
3939

4040
def _validate_module_type(self) -> None:
4141
assert (
42-
type(self.module) == ModuleBaseMeta
42+
type(self.module) is ModuleBaseMeta
4343
), f"Module Type must be a subclass of ModuleBase;\n Invalid Type[{self.module}]"
4444

4545
def _register_module(self) -> None:

tests/test_pydantic/test_model_field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def test_create_model_field_works():
1111
model_field_class=ResponseModelField,
1212
)
1313
assert isinstance(response_model, ModelField)
14-
assert response_model.type_ == dict
15-
assert response_model.type_ == dict
14+
assert response_model.type_ is dict
15+
assert response_model.type_ is dict
1616

1717

1818
def test_create_model_field_fails():

0 commit comments

Comments
 (0)