From e4f42dd1474e87ba4c0ee69aa322ee610031304d Mon Sep 17 00:00:00 2001 From: Peter Baumgartner Date: Sat, 10 Feb 2024 02:05:31 -0700 Subject: [PATCH] Fix tests on older Pythons --- tests/test_goodconf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_goodconf.py b/tests/test_goodconf.py index d0ef78f..775a385 100644 --- a/tests/test_goodconf.py +++ b/tests/test_goodconf.py @@ -2,7 +2,7 @@ import os import re from textwrap import dedent -from typing import Optional, Literal +from typing import Optional, List, Literal import pytest from pydantic import Field, ValidationError @@ -148,7 +148,7 @@ class TestConf(GoodConf): def test_generate_markdown_types(): class TestConf(GoodConf): a: Literal["a", "b"] = Field(default="a") - b: list[str] = Field() + b: List[str] = Field() lines = TestConf.generate_markdown().splitlines() assert " * type: `Literal['a', 'b']`" in lines