[issue44710] Unexpected behavior in empty class with pass (Python 3.7.3)

2021-07-23 Thread Cheuk Ting Ho
Cheuk Ting Ho added the comment: Thank you, Serhiy for explaining that to me. I am closing it now since it is not a bug. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue44710] Unexpected behavior in empty class with pass (Python 3.7.3)

2021-07-22 Thread Cheuk Ting Ho
New submission from Cheuk Ting Ho : Demo example: === class MyType(type): def __init__(cls, name, bases, nmspc): if "__annotations__" in nmspc: annotations = nmspc["__annotations__"] else: nm

[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-06-26 Thread Cheuk Ting Ho
Cheuk Ting Ho added the comment: I agree that for the more confusing ones, it would be better to write out the import statement explicitly. -- nosy: +Cheukting ___ Python tracker <https://bugs.python.org/issue36