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 3
3
"""
4
4
5
5
import importlib .metadata
6
- from typing import Any
7
- from typing import List
6
+ from typing import Any , List , Dict
8
7
9
8
import pytest
10
9
@@ -138,7 +137,7 @@ def some_func(self):
138
137
def test_register_skips_pydantic_fields (he_pm : PluginManager ) -> None :
139
138
class PydanticModelClass :
140
139
# stub to make object look like a pydantic model
141
- model_fields : dict = {"some_attr" : {} }
140
+ model_fields : Dict [ str , bool ] = {"some_attr" : True }
142
141
143
142
def __pydantic_core_schema__ (self ): ...
144
143
@@ -147,7 +146,7 @@ def some_attr(self): ...
147
146
148
147
test_plugin = PydanticModelClass ()
149
148
he_pm .register (test_plugin )
150
- with pytest .raises (AttributeError ) as excinfo :
149
+ with pytest .raises (AttributeError ):
151
150
he_pm .hook .some_attr .get_hookimpls ()
152
151
153
152
You can’t perform that action at this time.
0 commit comments