fix: enable and fix full type checking (#509)
* fix: enable and fix fully type checking * chore: pre-commit autoupdate * refactor: pull types out to file
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from typing import Union, TYPE_CHECKING
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
PopenBytes = subprocess.Popen[bytes]
|
||||
PathOrStr = Union[str, os.PathLike[str]]
|
||||
else:
|
||||
PopenBytes = subprocess.Popen
|
||||
PathOrStr = Union[str, "os.PathLike[str]"]
|
||||
Reference in New Issue
Block a user