mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-05 06:49:18 -05:00
py27+ syntax improvements
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user