Parameter with typing
my code have two classes
`ClassA` and `ClassB`
I want to dispatch
```python
@dispatch(List[ClassA])
def func(self, class_list):
dosomewithClassA()
@dispatch(List[ClassB])
def func(self, class_list):
dosomewithClassB()
```
but i got `TypeError: Parameterized generics cannot be used with class or instance checks`
关闭于 2024-04-23 4 条评论