| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 271cfd3 commit 30117a3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,8 +18,9 @@ | |||
| 18 | 18 | import importlib | |
| 19 | 19 | import pprint | |
| 20 | 20 | import textwrap | |
| 21 | + from dataclasses import dataclass | ||
| 21 | 22 | from types import ModuleType | |
| 22 | - from typing import Any, Dict, Iterable, NamedTuple, Optional, Tuple, Type, Union | ||
| 23 | + from typing import Any, Dict, Iterable, Optional, Tuple, Type, Union | ||
| 23 | 24 | ||
| 24 | 25 | import gitlab | |
| 25 | 26 | from gitlab import types as g_types | |
@@ -316,7 +317,8 @@ def total(self) -> Optional[int]: | |||
| 316 | 317 | return self._list.total | |
| 317 | 318 | ||
| 318 | 319 | ||
| 319 | - class RequiredOptional(NamedTuple): | ||
| 320 | + @dataclass(frozen=True) | ||
| 321 | + class RequiredOptional: | ||
| 320 | 322 | required: Tuple[str, ...] = () | |
| 321 | 323 | optional: Tuple[str, ...] = () | |
| 322 | 324 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments