Skip to content

Commit

Permalink
otk/command: fix linter problem
Browse files Browse the repository at this point in the history
  • Loading branch information
schuellerf committed Nov 5, 2024
1 parent 0b49928 commit 580e4da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/otk/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import argparse
import logging
import pathlib
import sys
from typing import List

Expand Down Expand Up @@ -39,9 +38,9 @@ def _process(arguments: argparse.Namespace, dry_run: bool) -> int:
dst = sys.stdout if arguments.output is None else open(arguments.output, "w", encoding="utf-8")

if arguments.input is None:
path = pathlib.Path(f"/proc/self/fd/{sys.stdin.fileno()}")
path = AnnotatedPath(f"/proc/self/fd/{sys.stdin.fileno()}")
else:
path = pathlib.Path(arguments.input)
path = AnnotatedPath(arguments.input)

# First pass of resolving the otk file is "shallow", it will not run
# externals and not resolve anything under otk.target.*
Expand Down

0 comments on commit 580e4da

Please sign in to comment.