aiosmtpd icon indicating copy to clipboard operation
aiosmtpd copied to clipboard

Controller.start() is missing type annotation

Open cuu508 opened this issue 2 years ago • 0 comments
trafficstars

The aiosmtpd library has the py.typed marker (awesome!), but the aiosmtpd.controller.Controller.start() method has no type annotation for the return type. This leads to a mypy warning in calling code (when run with --strict):

path/to/file.py:141: error: Call to untyped function "start" in typed context  [no-untyped-call]

Looking at the source, seems it could be annotated to return None.

cuu508 avatar Oct 26 '23 07:10 cuu508