Pycharm 抱怨 MyClass 实例出现意外参数。有没有解决的办法?
import attr
@attr.s
class _Super:
""" My Super class"""
x: str = attr.ib(validator=attr.validators.instance_of(str))
@attr.s
class MyClass(_Super):
""" My Sub class"""
y:str = attr.ib(validator=attr.validators.instance_of(str))
x = MyClass(x="a", y="b") # (x variable) Pycharm Typehint: "Unexpected argument"