Skip to content

Commit

Permalink
overrides typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 2, 2024
1 parent 04f22e1 commit bba6cb2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python_models8/connectors/my_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ def __init__(self, weights=0.0, delays=1, allow_self_connections=True
# TODO: Store any additional parameters

@overrides(AbstractConnector.get_delay_maximum)
def get_delay_maximum(self, synapse_info):
def get_delay_maximum(
self, synapse_info: SynapseInformation) -> Optional[float]:
# TODO call self._get_delay_maximum if needed
return 16

@overrides(AbstractConnector.get_delay_minimum)
def get_delay_minimum(self, synapse_info):
# TODO call self._get_delay_minimum if needed
def get_delay_minimum(
self, synapse_info: SynapseInformation) -> Optional[float]:
# TODO call self._get_delay_minimum if needed
return 1

@overrides(AbstractGenerateConnectorOnHost.create_synaptic_block)
Expand Down

0 comments on commit bba6cb2

Please sign in to comment.