com2ann -i for the following:
"""Test"""
from __future__ import annotations
import hashlib
def hash_value(value): # type: (bytes) -> str
return 'sha256:%s' % hashlib.sha256(value.lower()).hexdigest()
will duplicate the from __future__ import annotations import:
from __future__ import annotations
"""Test"""
from __future__ import annotations
import hashlib
def hash_value(value: bytes) -> str:
return 'sha256:%s' % hashlib.sha256(value.lower()).hexdigest()
introducing flake8 lint errors:
2 E402 module-import-not-at-top-of-file
1 F404 late-future-import
com2ann -ifor the following:will duplicate the
from __future__ import annotationsimport:introducing flake8 lint errors: