RFC: from __future__ import annotations + migrate
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
SECRET_KEY = "mysecret"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import anyio
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def test_mocker(mocker):
|
||||
mocker.MagicMock()
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import trio
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest_twisted
|
||||
from twisted.internet.task import deferLater
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# mypy: allow-untyped-defs
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user