Skip to content

Commit

Permalink
Update readme and add a new dependency for types in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
don4get committed Jan 16, 2020
1 parent 916c7bc commit 500e994
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ Nodedge
Graphical editor for physical modeling and simulation.
https://www.nodedge.io

.. image:: https://badge.fury.io/py/nodedge.svg
:target: https://badge.fury.io/py/nodedge

.. image:: https://img.shields.io/pypi/pyversions/nodedge
:alt: PyPI - Python Version

.. image:: https://img.shields.io/badge/license-GPL3.0-blue.svg?style=flat
:target: https://choosealicense.com/licenses/gpl-3.0/
:alt: License

.. image:: https://travis-ci.org/nodedge/nodedge.svg?branch=master
:target: https://travis-ci.org/don4get/hummingbird
:target: https://travis-ci.org/nodedge/nodedge
:alt: Test Status

.. image:: https://codecov.io/gh/nodedge/nodedge/branch/master/graph/badge.svg
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = ["sphinx_autodoc_typehints"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down
8 changes: 4 additions & 4 deletions nodedge/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ def onItemsDeselected(self):
def addHasBeenModifiedListener(self, callback: Callable[[None], None]):
self._hasBeenModifiedListeners.append(callback)

def addItemSelectedListener(self, callback):
def addItemSelectedListener(self, callback: Callable[[None], None]):
self._itemSelectedListeners.append(callback)

def addItemsDeselectedListener(self, callback):
def addItemsDeselectedListener(self, callback: Callable[[None], None]):
self._itemsDeselectedListeners.append(callback)

def addDragEnterListener(self, callback):
def addDragEnterListener(self, callback: Callable[[None], None]):
self.view.addDragEnterListener(callback)

def addDropListener(self, callback):
def addDropListener(self, callback: Callable[[None], None]):
self.view.addDropListener(callback)

def resetLastSelectedStates(self):
Expand Down
1 change: 1 addition & 0 deletions requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sphinx
sphinx-autodoc-types>=2.1.1
sphinx_rtd_theme

0 comments on commit 500e994

Please sign in to comment.