pythonはクラス外から任意のクラスメソッドを呼び出すと暗黙的に引数 self が渡されるため、クラスメソッドの引数1つ目に必ず self を取らなければならない、というルールがある。
Encountering a TypeError: BaseModel.init() takes 1 positional argument but 2 were given during snapshot expiration when calling table.maintenance.expire_snapshots ...
from pyfields import autoclass, field @autoclass class A: a: int = field(default = 1) @autoclass class B(A): b = field() B(b=3) It works when I add a type hint to b ...