mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-16 14:01:14 +01:00
test: use builtins for type annotations instead of List / Optional
This commit is contained in:
parent
26b7fce564
commit
9ac34be48f
2 changed files with 6 additions and 7 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue