RFC: from __future__ import annotations + migrate

This commit is contained in:
Ronny Pfannschmidt
2024-06-17 17:01:28 +02:00
parent 20dd1d6738
commit 9295f9ffff
242 changed files with 1961 additions and 1777 deletions

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
from pytest_bdd import given
from pytest_bdd import scenario
from pytest_bdd import then

View File

@@ -1 +1,4 @@
from __future__ import annotations
SECRET_KEY = "mysecret"

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import anyio
import pytest

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import asyncio
import pytest

View File

@@ -1,3 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
def test_mocker(mocker):
mocker.MagicMock()

View File

@@ -1,3 +1,5 @@
from __future__ import annotations
import unittest

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import trio
import pytest

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import pytest_twisted
from twisted.internet.task import deferLater

View File

@@ -1,4 +1,6 @@
# mypy: allow-untyped-defs
from __future__ import annotations
import pytest