From a3877d7cd266894f8c8373be391a318499b24bc2 Mon Sep 17 00:00:00 2001 From: Callum J Hays Date: Wed, 5 Oct 2022 16:58:39 +1000 Subject: [PATCH] fix: cannot import 'Literal' from 'typing' in py3.7 (pt2) --- mathpad/vector.py | 4 ++-- mathpad/vector_space.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mathpad/vector.py b/mathpad/vector.py index 6418f26..cb56c61 100644 --- a/mathpad/vector.py +++ b/mathpad/vector.py @@ -1,6 +1,6 @@ -from typing import Generic, Iterable, Literal, Sequence, Union, Any, TypeVar -from typing_extensions import Self +from typing import Generic, Iterable, Sequence, Union, Any, TypeVar +from typing_extensions import Self, Literal from sympy.physics.vector import vlatex from sympy import MatrixSymbol, Matrix, MatrixExpr diff --git a/mathpad/vector_space.py b/mathpad/vector_space.py index b48f394..4b56594 100644 --- a/mathpad/vector_space.py +++ b/mathpad/vector_space.py @@ -2,7 +2,6 @@ from typing import ( TYPE_CHECKING, Callable, - Type, Union, Tuple, Generic,