Skip to content

Commit

Permalink
fix 3.9 incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 authored and madebr committed Sep 9, 2024
1 parent 5bd29cc commit 067fd06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake_file_api/kinds/configureLog/target/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def __repr__(self) -> str:
class TargetCompileGroupPCH:
__slots__ = ("header", "backtrace")

def __init__(self, header: Path, backtrace: BacktraceNode | None):
def __init__(self, header: Path, backtrace: Optional[BacktraceNode]):
self.header = header
self.backtrace = backtrace

Expand All @@ -306,7 +306,7 @@ def __repr__(self) -> str:
class TargetCompileGroupDefine:
__slots__ = ("define", "backtrace")

def __init__(self, define: str, backtrace: BacktraceNode | None):
def __init__(self, define: str, backtrace: Optional[BacktraceNode]):
self.define = define
self.backtrace = backtrace

Expand Down Expand Up @@ -370,7 +370,7 @@ class TargetDependency:

def __init__(self, id: str, backtrace: Optional[BacktraceNode]):
self.id = id
self.target: CodemodelTargetV2 | None = None
self.target: Optional[CodemodelTargetV2] = None
self.backtrace = backtrace

def update_dependency(self, lut_id_target: dict[str, "CodemodelTargetV2"]) -> None:
Expand Down

0 comments on commit 067fd06

Please sign in to comment.