python-version: "3.10"
- name: install packages to tests
- run: pip install ./psycopg[dev,test] codespell ast-comments
+ # ast-comments version pinned beause of bug:
+ # https://github.com/t3rn0/ast-comments/issues/21
+ # TODO: unpin when fixed.
+ run: pip install ./psycopg[dev,test] codespell "ast-comments==1.1.0"
- name: Run black
run: black --check --diff .
import ast_comments as ast
-# The ast_comment has an import:
+# ast_comment versions 1.1.0, 1.1.1 have an import:
#
# from typing import Dict, List, Tuple, Union
#
# which shadows some of the types defined in ast.
#
-# TODO: report the issue upstream
+# Reported in https://github.com/t3rn0/ast-comments/issues/22
import ast as ast_orig
ast.Dict = ast_orig.Dict