Pythonで自身のクラスをクローンする関数の型ヒントの書き方Python version < 3.10from __future__ import annotationsを書くことで解決する。Python version >= 3.10何もしなくても動く。Referenceshttps://stackoverflow.com/questions/33533148/how-do-i-type-hint-a-method-with-the-type-of-the-enclosing-classPlease enable JavaScript to view the comments powered by Disqus.comments powered by Disqus