Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurents/neomodel-stubs
Typing stubs for neomodel
https://github.com/laurents/neomodel-stubs
neo4j neomodel
Last synced: about 2 months ago
JSON representation
Typing stubs for neomodel
- Host: GitHub
- URL: https://github.com/laurents/neomodel-stubs
- Owner: laurentS
- License: mit
- Created: 2020-03-12T11:21:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T11:55:19.000Z (over 4 years ago)
- Last Synced: 2024-10-12T18:58:57.685Z (3 months ago)
- Topics: neo4j, neomodel
- Language: Python
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```python
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 :)