Skip to content

Commit

Permalink
FIX: use Option and Union in class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 11, 2024
1 parent d6e8b1b commit af8439b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pwa_pages/project_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re
import sys
from functools import partial
from typing import TYPE_CHECKING, Callable
from typing import TYPE_CHECKING, Callable, Optional, Union

import yaml
from pydantic import BaseModel, model_validator
Expand Down Expand Up @@ -90,9 +90,9 @@ class SubProject(BaseModel):
class Project(BaseModel):
name: str
url: str
collaboration: list[str] | str | None = None
collaboration: Optional[Union[list[str], str]] = None
languages: list[str] = []
sub_projects: list[SubProject] | None = None
sub_projects: Optional[list[SubProject]] = None
since: int = 0


Expand Down

0 comments on commit af8439b

Please sign in to comment.