Skip to content

Commit

Permalink
changed named tuple to dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Nov 25, 2024
1 parent 6d6b78f commit 1428c39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 525 deletions.
6 changes: 4 additions & 2 deletions aim/services.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import NamedTuple
# from typing import NamedTuple
from dataclasses import dataclass
import os
import sqlalchemy as sa
import structlog
Expand Down Expand Up @@ -32,7 +33,8 @@
structlog.configure(processors)


class Services(NamedTuple):
@dataclass(frozen=True)
class Services:
"""
Global Configuration Services
"""
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"sphinx.ext.autodoc",
"myst_parser",
"sphinxcontrib.mermaid",
"sphinx_toolbox.more_autodoc.autonamedtuple",
]
autosummary_generate = True

Expand Down
Loading

0 comments on commit 1428c39

Please sign in to comment.