79264972

Date: 2024-12-09 12:30:36
Score: 1
Natty:
Report link

From Python 3.9 you can write such code:

from collections.abc import Generator

def my_func(arg1) -> Generator[RecordsFile]:
    ...

which is much simpler.

Ref

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Craynic Cai