]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔇 Ignore warning from attrs in Trio (#11949)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 4 Aug 2024 18:23:14 +0000 (13:23 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2024 18:23:14 +0000 (18:23 +0000)
pyproject.toml

index 3601e6322179d0d9ead424f500ba1ab1858e0fb9..c34838b83fdd1bed4c5d4cce0b027fa0113c9030 100644 (file)
@@ -157,7 +157,6 @@ filterwarnings = [
     "ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
     # see https://trio.readthedocs.io/en/stable/history.html#trio-0-22-0-2022-09-28
     "ignore:You seem to already have a custom.*:RuntimeWarning:trio",
-    "ignore::trio.TrioDeprecationWarning",
     # TODO remove pytest-cov
     'ignore::pytest.PytestDeprecationWarning:pytest_cov',
     # TODO: remove after upgrading SQLAlchemy to a version that includes the following changes
@@ -169,6 +168,10 @@ filterwarnings = [
     #   - https://github.com/mpdavis/python-jose/issues/332
     #   - https://github.com/mpdavis/python-jose/issues/334
     'ignore:datetime\.datetime\.utcnow\(\) is deprecated and scheduled for removal in a future version\..*:DeprecationWarning:jose',
+    # Trio 24.1.0 raises a warning from attrs
+    # Ref: https://github.com/python-trio/trio/pull/3054
+    # Remove once there's a new version of Trio
+    'ignore:The `hash` argument is deprecated*:DeprecationWarning:trio',
 ]
 
 [tool.coverage.run]