astral icon indicating copy to clipboard operation
astral copied to clipboard

Mypy flags comment as invalid

Open davidsmfreire opened this issue 1 year ago • 1 comments

Hi! Not here to nag you or ask for features, just wanted to ask if this error also occurs to the developers here when you run mypy against atral's code: /astral/sun.py:450: error: Invalid "type: ignore" comment

Running mypy="0.971" and astral="^3.1". Thanks! https://github.com/sffjunkie/astral/blob/b805285654948c6513f378952aab685085efbad6/src/astral/sun.py#L447

davidsmfreire avatar Nov 07 '22 18:11 davidsmfreire

Yes, upgrading to the latest version of astral broke our CI pipeline with

.venv/lib/python3.10/site-packages/astral/sun.py:447: error: Invalid "type: ignore" comment  [syntax]

sondrelg avatar Dec 27 '22 15:12 sondrelg