Skip to content

Commit

Permalink
there is a Self after all
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Jun 27, 2024
1 parent 5aa6c19 commit b2bf8c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifiers = [
]

dependencies = [
"typing_extensions",
"numpy",
"scipy",
"matplotlib",
Expand Down
7 changes: 4 additions & 3 deletions src/kima/pykima/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import os
import sys
import pickle
from typing import List, Union
from typing import List, Union, Any
from typing_extensions import Self
import zipfile
import time
import tempfile
Expand Down Expand Up @@ -186,8 +187,8 @@ class posterior_holder:
η5: np.ndarray = field(init=False)
η6: np.ndarray = field(init=False)
#
tr = field(init=False)
ko = field(init=False)
tr: Self = field(init=False)
ko: Self = field(init=False)

def __repr__(self):
fields = list(self.__dataclass_fields__.keys())
Expand Down

0 comments on commit b2bf8c2

Please sign in to comment.