mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 16:44:42 +04:00
py27+ syntax improvements
This commit is contained in:
parent
0a93f3bfdd
commit
ba75867c93
9 changed files with 31 additions and 34 deletions
|
|
@ -21,4 +21,4 @@ class Manifest(object):
|
|||
|
||||
@cached_property
|
||||
def hooks(self):
|
||||
return dict((hook['id'], hook) for hook in self.manifest_contents)
|
||||
return {hook['id']: hook for hook in self.manifest_contents}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue