Skip to content

laurentS/neomodel-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typing stubs for neomodel

Usage

Install this package with:

pip install git+https://github.com/laurentS/neomodel-stubs

mypy (or any typing tool you're using) should now be able to pick up the annotations.

Note that this probably won't work with python < 3.5

Notes

These are only very partial stubs still:

  • mypy should recognize properties for their correct type:
    class MyNode(StructuredNode):
        myprop = StringProperty()
    
    my_node = MyNode()
    # my_node.myprop is seen as str
  • MyNode.nodes.get() and other methods will return the wrong type, leading to errors on subsequent lines.
  • There are most likely other problems that need fixing. Please open an issue if you spot something broken. PRs welcome :)

About

Typing stubs for neomodel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages