Open NeonDaniel opened 2 years ago
Describe the bug nice_time indicates an argument type of datetime, but it should be datetime.datetime https://github.com/MycroftAI/lingua-franca/blob/eb6d677d4f8d201e1bcf645382eb262c7d0688f1/lingua_franca/format.py#L273
nice_time
datetime
datetime.datetime
To Reproduce Steps to reproduce the behavior:
from mycroft.util.format import nice_time nice_time(datetime.now(tz), lang) # editor will warn: Expected type 'datetime.pyi', got 'datetime' instead
Expected behavior nice_time method should expect a datetime type, not datetime.pyi
datetime.pyi
Environment (please complete the following information):
Describe the bug
nice_time
indicates an argument type ofdatetime
, but it should bedatetime.datetime
https://github.com/MycroftAI/lingua-franca/blob/eb6d677d4f8d201e1bcf645382eb262c7d0688f1/lingua_franca/format.py#L273To Reproduce Steps to reproduce the behavior:
Expected behavior
nice_time
method should expect adatetime
type, notdatetime.pyi
Environment (please complete the following information):