File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 33"""
44
55import importlib .metadata
6- from typing import Any
7- from typing import List
6+ from typing import Any , List , Dict
87
98import pytest
109
@@ -138,7 +137,7 @@ def some_func(self):
138137def test_register_skips_pydantic_fields (he_pm : PluginManager ) -> None :
139138 class PydanticModelClass :
140139 # stub to make object look like a pydantic model
141- model_fields : dict = {"some_attr" : {} }
140+ model_fields : Dict [ str , bool ] = {"some_attr" : True }
142141
143142 def __pydantic_core_schema__ (self ): ...
144143
@@ -147,7 +146,7 @@ def some_attr(self): ...
147146
148147 test_plugin = PydanticModelClass ()
149148 he_pm .register (test_plugin )
150- with pytest .raises (AttributeError ) as excinfo :
149+ with pytest .raises (AttributeError ):
151150 he_pm .hook .some_attr .get_hookimpls ()
152151
153152
You can’t perform that action at this time.
0 commit comments