mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 05:20:32 +08:00
Bump minimum Python version to 3.8 (#1876)
* Bump minimum Python version to 3.8 * typing_extensions.Literal -> typing.Literal * ns-dev-test * typing_extensions.get_args => typing.get_args * Format with older version of black * Bump `black` * Run black
This commit is contained in:
1 parent
7537551f38
commit
63c6303736
58 files changed
+70
-117
No files matched your search
@@ -21,9 +21,7 @@ from __future__ import annotations
|
||||
import warnings
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Any, List, Optional, Tuple, Type
|
||||
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, List, Literal, Optional, Tuple, Type
|
||||
|
||||
# model instances
|
||||
from nerfstudio.utils import writer
|
||||
|
||||
@@ -26,6 +26,7 @@ from rich.console import Console
|
||||
CONSOLE = Console()
|
||||
# pylint: disable=import-outside-toplevel
|
||||
|
||||
|
||||
# cannot use mutable types directly within dataclass; abstracting default factory calls
|
||||
def to_immutable_dict(d: Dict[str, Any]):
|
||||
"""Method to convert mutable dict to default factory dict
|
||||
|
||||
@@ -19,11 +19,10 @@ from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Dict, Literal, Optional
|
||||
|
||||
import yaml
|
||||
from rich.console import Console
|
||||
from typing_extensions import Literal
|
||||
|
||||
from nerfstudio.configs.base_config import (
|
||||
InstantiateConfig,
|
||||
|
||||
Reference in new issue
Block a user