Start support for mypy --strict by ajnelson-nist · Pull Request #1515 · RDFLib/rdflib (original) (raw)
4. Inlined in the test program - it's not clear to me why
prepareQuery
is not exposed tomypy
viardflib/plugins/sparql/__init__py
, while the test program itself would run just fine callingrdflib.plugins.sparql.prepareQuery()
. Any ideas?
mypy has an option:
--no-implicit-reexport Treat imports as private unless aliased (inverse:
--implicit-reexport)
This is enabled in --strict mode:
--strict Strict mode; enables the following flags: --warn-
unused-configs, --disallow-any-generics,
--disallow-subclassing-any, --disallow-untyped-
calls, --disallow-untyped-defs, --disallow-
incomplete-defs, --check-untyped-defs, --disallow-
untyped-decorators, --no-implicit-optional,
--warn-redundant-casts, --warn-unused-ignores,
--warn-return-any, --no-implicit-reexport,
--strict-equality
For more info see https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport