Skip to content

Commit

Permalink
Defining WtAnnexedFileInfo using dataclass instead
Browse files Browse the repository at this point in the history
mypy doesn't seem to work well with `NamedTuple`.
For more info, checkout
python/mypy#9043
python/mypy#4507
  • Loading branch information
candleindark committed Apr 25, 2023
1 parent e3d4a15 commit 63b2991
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datalad_registry/utils/datalad_tls.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from typing import NamedTuple, Optional
from dataclasses import dataclass
from typing import Optional
from uuid import UUID

from datalad import api as dl
from datalad.api import Dataset


class WtAnnexedFileInfo(NamedTuple):
@dataclass
class WtAnnexedFileInfo:
"""
Represent information about annexed files in the working tree of a datalad dataset
that is a git-annex repo
Expand Down

0 comments on commit 63b2991

Please sign in to comment.