Skip to content

Commit 9aea5bc

Browse files
committed
Black everything
1 parent e8458ff commit 9aea5bc

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
@@ -86,9 +86,7 @@ def public_key(self, backend=None):
8686

8787
class DHParameterNumbers(object):
8888
def __init__(self, p, g, q=None):
89-
if not isinstance(p, int) or not isinstance(
90-
g, int
91-
):
89+
if not isinstance(p, int) or not isinstance(g, int):
9290
raise TypeError("p and g must be integers")
9391
if q is not None and not isinstance(q, int):
9492
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
@@ -95,7 +95,9 @@ def sign(self, data, signature_algorithm):
9595
"""
9696

9797

98-
class EllipticCurvePrivateKeyWithSerialization(EllipticCurvePrivateKey, metaclass=abc.ABCMeta):
98+
class EllipticCurvePrivateKeyWithSerialization(
99+
EllipticCurvePrivateKey, metaclass=abc.ABCMeta
100+
):
99101
@abc.abstractmethod
100102
def private_numbers(self):
101103
"""
@@ -335,9 +337,7 @@ def derive_private_key(private_value, curve, backend=None):
335337

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

343343
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
@@ -339,9 +339,7 @@ def __hash__(self):
339339

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

347345
self._e = e

src/cryptography/x509/extensions.py

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

0 commit comments

Comments
 (0)