-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from klieret/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
- Loading branch information
Showing
10 changed files
with
29 additions
and
29 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,5 @@ def _guid64(): | |
|
||
|
||
def guid(): | ||
""" Return globally unique ID """ | ||
"""Return globally unique ID""" | ||
return _guid64() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
def is_list_like(obj): | ||
""" True if object type is similar to list, tuple etc. """ | ||
"""True if object type is similar to list, tuple etc.""" | ||
return isinstance(obj, (tuple, list)) | ||
|
||
|
||
def is_list_list_like(obj): | ||
""" True if object is like-like object of list-like objects """ | ||
"""True if object is like-like object of list-like objects""" | ||
return is_list_like(obj) and all(map(is_list_like, obj)) | ||
|
||
|
||
def is_list_dict_like(obj): | ||
""" True if object is list-like object of dictionaries. """ | ||
"""True if object is list-like object of dictionaries.""" | ||
return is_list_like(obj) and all(map(lambda x: isinstance(x, dict), obj)) | ||
|
||
|
||
def is_dict_list_like(obj): | ||
""" True if object is dictionary with list-like objects as values. """ | ||
"""True if object is dictionary with list-like objects as values.""" | ||
return isinstance(obj, dict) and all(map(is_list_like, obj.values())) |