Skip to content

Commit d85b2c3

Browse files
committed
Update black to 24.2.0 and reformat
1 parent 4ac3622 commit d85b2c3

File tree

3 files changed

+25
-30
lines changed

3 files changed

+25
-30
lines changed

asserts/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ def assert_datetime_about_now_utc(actual, msg_fmt="{msg}"):
865865

866866

867867
class AssertRaisesContext(object):
868-
869868
"""A context manager to test for exceptions with certain properties.
870869
871870
When the context is left and no exception has been raised, an
@@ -948,7 +947,6 @@ def exc_val(self):
948947

949948

950949
class AssertRaisesRegexContext(AssertRaisesContext):
951-
952950
"""A context manager to test for exceptions and their messages."""
953951

954952
def __init__(self, exception, pattern, msg_fmt="{msg}"):
@@ -966,7 +964,6 @@ def format_message(self, default_msg):
966964

967965

968966
class AssertRaisesErrnoContext(AssertRaisesContext):
969-
970967
"""A context manager to test for exceptions with errnos."""
971968

972969
def __init__(self, exception, expected_errno, msg_fmt="{msg}"):
@@ -1161,7 +1158,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):
11611158

11621159

11631160
class AssertWarnsContext(object):
1164-
11651161
"""A context manager to test for warnings with certain properties.
11661162
11671163
When the context is left and the expected warning has not been raised, an
@@ -1231,7 +1227,6 @@ class was issued. The callback will get the issued warning as only
12311227

12321228

12331229
class AssertWarnsRegexContext(AssertWarnsContext):
1234-
12351230
"""A context manager to test for warnings and their messages."""
12361231

12371232
def __init__(self, warning_class, pattern, msg_fmt="{msg}"):

poetry.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ include = ["*/py.typed", "*.pyi"]
2525
python = ">=3.8.1"
2626

2727
[tool.poetry.group.dev.dependencies]
28-
black = { version = "^23.1.0" }
28+
black = { version = "^24.2.0" }
2929
flake8 = { version = "^7.0.0" }
3030
mypy = "~1.5.1"
3131
poethepoet = "^0.25.0"

0 commit comments

Comments
 (0)