Skip to content

Commit

Permalink
Fix tests on older Pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Feb 10, 2024
1 parent 1c17a4e commit e4f42dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_goodconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4f42dd

Please sign in to comment.