diff options
| author | Bob Halley <halley@dnspython.org> | 2022-03-15 08:37:20 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2022-03-15 08:37:20 -0700 |
| commit | b1d2332687adbecc0acbb4e623124f783f859d9e (patch) | |
| tree | 5318d5ecc0dd35e0a6922380cd60f9d9caa9ad34 /dns/immutable.py | |
| parent | 08f8bde64e8679d5e4f0b129292461de152ba32b (diff) | |
| download | dnspython-b1d2332687adbecc0acbb4e623124f783f859d9e.tar.gz | |
black autoformatting
Diffstat (limited to 'dns/immutable.py')
| -rw-r--r-- | dns/immutable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/immutable.py b/dns/immutable.py index 8a42621..38fbe59 100644 --- a/dns/immutable.py +++ b/dns/immutable.py @@ -9,7 +9,7 @@ from dns._immutable_ctx import immutable @immutable class Dict(collections.abc.Mapping): # lgtm[py/missing-equals] - def __init__(self, dictionary: Any, no_copy: bool=False): + def __init__(self, dictionary: Any, no_copy: bool = False): """Make an immutable dictionary from the specified dictionary. If *no_copy* is `True`, then *dictionary* will be wrapped instead @@ -30,7 +30,7 @@ class Dict(collections.abc.Mapping): # lgtm[py/missing-equals] h = 0 for key in sorted(self._odict.keys()): h ^= hash(key) - object.__setattr__(self, '_hash', h) + object.__setattr__(self, "_hash", h) # this does return an int, but pylint doesn't figure that out return self._hash |
