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:
Brent Yi authored and GitHub committed 2023-05-06 13:29:48 -07:00
1 parent 7537551f38
commit 63c6303736
58 files changed
+70 -117

No files matched your search

+1 -3
View File
@@ -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
+1
View File
@@ -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
+1 -2
View File
@@ -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,