Skip to content

pre-commit run check-lincc-frameworks-template failure for python 3.8 #238

@cchris28

Description

@cchris28

python version: 3.8.17
pre-commit version 3.2.1
mypy_type_checking: basic

(kbmod-3.8) bash-5.2$ python --version
Python 3.8.17
(kbmod-3.8) bash-5.2$ cat .copier-answers.yml | grep mypy_type
mypy_type_checking: basic
(kbmod-3.8) bash-5.2$ pip list | grep pre-commit
pre-commit 3.2.1
(kbmod-3.8) bash-5.2$ pre-commit run check-lincc-frameworks-template-version
Check template version...................................................Failed

  • hook id: check-lincc-frameworks-template-version
  • duration: 0.1s
  • exit code: 1

Traceback (most recent call last):
File "/Users/cchris28/.cache/pre-commit/repo788nozhw/py_env-python3.8/bin/check-lincc-frameworks-template-version", line 5, in
from pre_commit_hooks.check_template_version import main
File "/Users/cchris28/.cache/pre-commit/repo788nozhw/py_env-python3.8/lib/python3.8/site-packages/pre_commit_hooks/init.py", line 1, in
from .check_template_version import *
File "/Users/cchris28/.cache/pre-commit/repo788nozhw/py_env-python3.8/lib/python3.8/site-packages/pre_commit_hooks/check_template_version.py", line 60, in
def main(argv: Sequence[str] | None = None) -> int:
TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions