Typing: Options

This commit is contained in:
Thomas Holder
2023-12-13 15:18:39 +01:00
parent 723609cc33
commit 0aafca7f73
10 changed files with 184 additions and 92 deletions

View File

@@ -15,6 +15,11 @@ Provides the :class:`Determinant` class.
"""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from propka.group import Group
class Determinant:
"""Determinant class.
@@ -25,7 +30,7 @@ class Determinant:
TODO - figure out what this class does.
"""
def __init__(self, group, value):
def __init__(self, group: "Group", value: float):
"""Initialize the object.
Args:
@@ -36,7 +41,7 @@ class Determinant:
self.label = group.label
self.value = value
def add(self, value):
def add(self, value: float):
"""Increment determinant value.
Args: