improve type annotations
This commit is contained in:
parent
4dd4e3c4ff
commit
4eab64dc9e
1 changed files with 2 additions and 2 deletions
4
lethe.py
4
lethe.py
|
|
@ -3,12 +3,12 @@
|
|||
Git snapshotting tool
|
||||
"""
|
||||
|
||||
from typing import List, Union
|
||||
import subprocess
|
||||
import tempfile
|
||||
import datetime
|
||||
import argparse
|
||||
from itertools import chain
|
||||
from typing import List
|
||||
import sys
|
||||
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ __author__ = 'Jan Petykeiwicz'
|
|||
version = 0.7
|
||||
|
||||
|
||||
def _run(command: str or List[str], **kwargs):
|
||||
def _run(command: Union[str, List[str]], **kwargs) -> str:
|
||||
"""
|
||||
Wrapper for subprocess.run():
|
||||
- Accepts args as either a list of strings or space-delimited string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue