Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 27, 2024
1 parent 9b6f8d4 commit 92a2f63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing/test_pluginmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ class A:

def test_register_skips_properties(he_pm: PluginManager) -> None:
property_was_executed = False

class A:
@property
def some_func(self):
property_was_executed = True
pass

a = A()
he_pm.register(a)
Expand All @@ -138,7 +139,7 @@ def some_func(self):
def test_register_skips_pydantic_fields(he_pm: PluginManager) -> None:
class A:
# stub to make object look like a pydantic model
model_fields = {'some_attr': {}}
model_fields = {"some_attr": {}}

def __pydantic_core_schema__(self): ...

Expand Down

0 comments on commit 92a2f63

Please sign in to comment.