Skip to content

Commit

Permalink
Replace str | None with Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 7, 2023
1 parent 23546d4 commit 0c472ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/python/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class BuildConfig(BaseModel):
extra_cmake: Union[List[str], str] = Field(None, alias="extra-cmake-opt")
lief_install_dir: Optional[str] = Field(None, alias="lief-install-dir")
py_api: str = Field("", alias="py-api")
c_compiler: str | None = Field(None, alias="c-compiler")
cxx_compiler: str | None = Field(None, alias="cxx-compiler")
c_compiler: Optional[str] = Field(None, alias="c-compiler")
cxx_compiler: Optional[str] = Field(None, alias="cxx-compiler")

@property
def targets(self) -> List[str]:
Expand Down

0 comments on commit 0c472ca

Please sign in to comment.