-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into m/core-604/add_or_update_ds
- Loading branch information
Showing
12 changed files
with
907 additions
and
832 deletions.
There are no files selected for viewing
115 changes: 0 additions & 115 deletions
115
assets/scripts/gx_cloud/experimental/onboarding_script.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from __future__ import annotations | ||
|
||
import pathlib | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass(frozen=True) | ||
class PrintableDefinition: | ||
file: pathlib.Path | ||
name: str | ||
|
||
def __post_init__(self): | ||
if not self.file.exists(): | ||
raise FileNotFoundError(f"File {self.file} does not exist.") # noqa: TRY003 | ||
|
||
def __str__(self) -> str: # type: ignore[explicit-override] | ||
return f"File: {self.file} Name: {self.name}" | ||
|
||
def __lt__(self, other) -> bool: | ||
return str(self) < str(other) |
Oops, something went wrong.