Merge pull request #847 from antmicro/fix_formatting

Fix formatting
This commit is contained in:
litghost 2019-05-23 06:54:59 -07:00 committed by GitHub
commit 87126d9787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ class RcElement(namedtuple('RcElement', 'resistance capacitance')):
class hashabledict(dict):
""" Immutable version of dictionary with hash support. """
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.hash = hash(tuple(sorted(self.items())))