test: use builtins for type annotations instead of List / Optional

This commit is contained in:
Jörg Thalheim 2023-11-29 08:16:00 +01:00
parent 26b7fce564
commit 9ac34be48f
2 changed files with 6 additions and 7 deletions

View file

@ -2,7 +2,6 @@ import os
import subprocess
import sys
import unittest
from typing import Optional
import pytest
@ -11,7 +10,7 @@ from .procs import run
def direnv_exec(
direnv_project: DirenvProject, cmd: str, env: Optional[dict[str, str]] = None
direnv_project: DirenvProject, cmd: str, env: dict[str, str] | None = None
) -> None:
args = ["direnv", "exec", str(direnv_project.directory), "sh", "-c", cmd]
print("$ " + " ".join(args))