DerwenAI / kglab

Graph Data Science: an abstraction layer in Python for building knowledge graphs, integrated with popular graph libraries – atop Pandas, NetworkX, RAPIDS, RDFlib, pySHACL, PyVis, morph-kgc, pslpython, pyarrow, etc.
https://derwen.ai/docs/kgl/
MIT License
581 stars 66 forks source link

mypy setup fails #227

Closed Mec-iS closed 2 years ago

Mec-iS commented 2 years ago

I'm submitting a

Current Behaviour:

$ mypy kglab/*.py
kglab/kglab.py:629: error: Argument "destination" to "serialize" of "Graph" has incompatible type "Union[Union[str, Path, Any], IO[Any]]"; expected "None"

Expected Behaviour:

mypy should set up

Environment:

python 3.8
mypy==0.910
mypy-extensions==0.4.3
Mec-iS commented 2 years ago

228