Skip to content

Commit

Permalink
updated type hinting for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheww95 committed Oct 22, 2024
1 parent 1367769 commit 10981e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mikrokondo_tools/samplesheet/samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SampleRow:
long_reads: t.Optional[p.Path] = None
assembly: t.Optional[p.Path] = None

def __getitem__(self, name: str) -> str | p.Path | None :
def __getitem__(self, name: str) -> t.Union[str, p.Path, None] :
return getattr(self, name)

def __setitem__(self, key: str, value: str) -> None:
Expand Down

0 comments on commit 10981e7

Please sign in to comment.