Skip to content

Commit

Permalink
Add Python type stubs (#1682)
Browse files Browse the repository at this point in the history
* Imported type stubs from raphtory-stubs

* Added empty py.typed for type stub recognition

* Added type hints to nullmodels inputs

* Some algorithms stubs

* Checking stubs against rust? (And auto-generating docs?)

* Properties et al fixes

* Removed unnecessary functions

* Pytest, first pass of checking stub/actual sync

* Type edits

* Started auto-generation of type stubs

* Auto-generate docstrings

* Auto-generated type stubs

* Removed check-stubs script

* Added property decorator

* Added property decorator

* Handle optional/required params

* Auto-generated stubs

* Better stubs 🙏

* Final stub gen version

* Revert unnecessary changes to nullmodels

* Refactor file structure for IDE recognition

* Remove old stubs

* Added class __init__ defs

* Better __init__ param types

* Moved script location

* Module type fixes, minor edits

* Added `make stubs`

* Removed virtual env activation
  • Loading branch information
hallofstairs authored Jul 15, 2024
1 parent a9fe913 commit e1506d5
Show file tree
Hide file tree
Showing 9 changed files with 5,961 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ deactivate-storage:

pull-storage: activate-storage
git submodule update --init --recursive

stubs:
cd python && ./scripts/gen-stubs.py && mypy python/raphtory/**/*.pyi
Loading

0 comments on commit e1506d5

Please sign in to comment.