Skip to content

Commit ea74aa1

Browse files
committed
Treat pyscf imports as Any for Pyrefly CI
python-checks installs pylint.env.txt which includes pyscf; Pyrefly then rejects scf.HF-style annotations as not-a-type. replace-imports-with-any keeps typecheck stable whether or not pyscf is installed.
1 parent a686061 commit ea74aa1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ ignore-missing-imports = [
7474
"tensorflow_docs",
7575
"tensorflow_docs.*",
7676
]
77+
# pyscf (and similar) may be installed in CI via other env files; their
78+
# factory callables (e.g. scf.HF) are not valid annotation forms for Pyrefly.
79+
replace-imports-with-any = [
80+
"pyscf",
81+
"pyscf.*",
82+
]
7783

7884
# Low-priority noise vs Cirq/sympy Expr typing and metaclass patterns that mypy
7985
# did not treat as errors in practice for this codebase.

0 commit comments

Comments
 (0)