style: remove from future import annotations
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
committed by
Henry Schreiner
parent
1b63074d76
commit
708cf1d32b
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from .base import TestProject
|
||||
from .c import new_c_project
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from typing import Any, Self
|
||||
|
||||
import jinja2
|
||||
|
||||
@@ -37,8 +35,8 @@ class TestProject:
|
||||
|
||||
f.write(content)
|
||||
|
||||
def copy(self) -> TestProject:
|
||||
other = TestProject()
|
||||
def copy(self) -> Self:
|
||||
other = self.__class__()
|
||||
other.files = self.files.copy()
|
||||
other.template_context = self.template_context.copy()
|
||||
return other
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import jinja2
|
||||
|
||||
from .base import TestProject
|
||||
|
||||
Reference in New Issue
Block a user