Skip to content

Commit 5ab1eb1

Browse files
committed
Black everything
1 parent cd86457 commit 5ab1eb1

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

src/cryptography/hazmat/primitives/asymmetric/dh.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ def public_key(self, backend=None):
8585

8686
class DHParameterNumbers(object):
8787
def __init__(self, p, g, q=None):
88-
if not isinstance(p, int) or not isinstance(
89-
g, int
90-
):
88+
if not isinstance(p, int) or not isinstance(g, int):
9189
raise TypeError("p and g must be integers")
9290
if q is not None and not isinstance(q, int):
9391
raise TypeError("q must be integer or None")

src/cryptography/hazmat/primitives/asymmetric/ec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def sign(self, data, signature_algorithm):
9494
"""
9595

9696

97-
class EllipticCurvePrivateKeyWithSerialization(EllipticCurvePrivateKey, metaclass=abc.ABCMeta):
97+
class EllipticCurvePrivateKeyWithSerialization(
98+
EllipticCurvePrivateKey, metaclass=abc.ABCMeta
99+
):
98100
@abc.abstractmethod
99101
def private_numbers(self):
100102
"""
@@ -334,9 +336,7 @@ def derive_private_key(private_value, curve, backend=None):
334336

335337
class EllipticCurvePublicNumbers(object):
336338
def __init__(self, x, y, curve):
337-
if not isinstance(x, int) or not isinstance(
338-
y, int
339-
):
339+
if not isinstance(x, int) or not isinstance(y, int):
340340
raise TypeError("x and y must be integers.")
341341

342342
if not isinstance(curve, EllipticCurve):

src/cryptography/hazmat/primitives/asymmetric/rsa.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ def __hash__(self):
338338

339339
class RSAPublicNumbers(object):
340340
def __init__(self, e, n):
341-
if not isinstance(e, int) or not isinstance(
342-
n, int
343-
):
341+
if not isinstance(e, int) or not isinstance(n, int):
344342
raise TypeError("RSAPublicNumbers arguments must be integers.")
345343

346344
self._e = e

src/cryptography/x509/extensions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,7 @@ def __init__(self, policy_identifier, policy_qualifiers):
739739
if policy_qualifiers:
740740
policy_qualifiers = list(policy_qualifiers)
741741
if not all(
742-
isinstance(x, (str, UserNotice))
743-
for x in policy_qualifiers
742+
isinstance(x, (str, UserNotice)) for x in policy_qualifiers
744743
):
745744
raise TypeError(
746745
"policy_qualifiers must be a list of strings and/or "

0 commit comments

Comments
 (0)