arangoml / fastgraphml

Given an input graph (ArangoDB or PyG) it generates graph embeddings using Low-Code framework built on top of PyG.
66 stars 7 forks source link

MyPy - Untyped Decorator #14

Closed cw00dw0rd closed 1 year ago

cw00dw0rd commented 1 year ago

Creating issue to preserve conversation with @sachinsharma9780 MyPy reports issues with untyped decorators but no immediate solution was found. I will continue to investigate but if the fix is overly complex it may detract, rather than add to, the code quality and readability. @geenen124 do you have any solutions in mind?

This might also be related to the error produced with class inheritance so I will include the error output below but this may warrant another issue for discussion or perhaps has a separate simple solution.

fastgraphml\graph_embeddings\models\metapath2vec.py:298: error: Untyped decorator makes function "get_embeddings" untyped
fastgraphml\graph_embeddings\models\gat.py:44: error: Class cannot subclass "Module" (has type "Any")