mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-03-13 09:29:54 +08:00
Fix Optional in test
This commit is contained in:
@@ -73,7 +73,7 @@ def test_alias_priority_1():
|
||||
|
||||
|
||||
@pytest.mark.parametrize("alias_priority", [None, 2])
|
||||
def test_alias_priority_2(alias_priority: Optional[int]):
|
||||
def test_alias_priority_2(alias_priority: int | None):
|
||||
def to_camel(string: str) -> str:
|
||||
return "".join(word.capitalize() for word in string.split("_"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user