阅读背景:

在Python中,我如何表明我重写了一个方法?

来源:互联网 

In Java, for example, the @Override annotation not only provides compile-time checking of an override but makes for excellent self-documenting code. I'm just looking for documentation (although if it's an indicator to some checker like pylint, that's a bonus). I can add a comment or docstring somewhere, but what is the idiomatic way to indicate an override in Python?In Java, for example, the @Override annotation




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: