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 -2
View File
@@ -20,12 +20,11 @@ from __future__ import annotations
import os
import sys
from pathlib import Path
from typing import Optional, Tuple
from typing import Literal, Optional, Tuple
import torch
import yaml
from rich.console import Console
from typing_extensions import Literal
from nerfstudio.engine.trainer import TrainerConfig
from nerfstudio.pipelines.base_pipeline import Pipeline
+1 -2
View File
@@ -15,11 +15,10 @@
""" Math Helper Functions """
from dataclasses import dataclass
from typing import Tuple
from typing import Literal, Tuple
import torch
from torchtyping import TensorType
from typing_extensions import Literal
def components_from_spherical_harmonics(levels: int, directions: TensorType[..., 3]) -> TensorType[..., "components"]: