-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add max_parallelization * chore: bump version * refactor: formatting
- Loading branch information
Showing
16 changed files
with
967 additions
and
460 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.15.2" | ||
__version__ = "0.15.3" |
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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
|
||
|
||
class Base: | ||
def __getitem__(self, key): | ||
return ( | ||
self.properties[key] if hasattr(self, 'properties') and self.properties is not None and key in self.properties else None | ||
self.properties[key] | ||
if hasattr(self, "properties") | ||
and self.properties is not None | ||
and key in self.properties | ||
else None | ||
) | ||
|
||
def __repr__(self) -> str: | ||
field_strings = [] | ||
for key, field in vars(self).items(): | ||
if key != 'properties' and key != 'scoped_reference' and field is not None and not isinstance(field, Base): | ||
field_strings.append(f'{key}:{field!r}') | ||
if ( | ||
key != "properties" | ||
and key != "scoped_reference" | ||
and field is not None | ||
and not isinstance(field, Base) | ||
): | ||
field_strings.append(f"{key}:{field!r}") | ||
|
||
return f"<{self.__class__.__name__} {' '.join(field_strings)}>" | ||
return f"<{self.__class__.__name__} {' '.join(field_strings)}>" |
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
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
Oops, something went wrong.