Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrMuellerluedenscheid committed Nov 3, 2021
1 parent 84a2052 commit 30721f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oelint_adv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import sys

from pathlib import Path
from typing import List

from oelint_parser.cls_stash import Stash
from oelint_parser.constants import CONSTANTS
Expand Down Expand Up @@ -69,8 +69,8 @@ def parse_arguments():
return create_argparser().parse_args() # pragma: no cover


def find_recipes(root_directory: Path) -> list[str]:
"""Walks a `root_diretory` and gathers `.bb` / `.bbappend` files.
def find_recipes(root_directory: str) -> List[str]:
"""Walks a `root_directory` and gathers `.bb` / `.bbappend` files.
"""
recipes = []
for root, dirs, files in os.walk(root_directory):
Expand All @@ -81,7 +81,7 @@ def find_recipes(root_directory: Path) -> list[str]:
return recipes


def expand_paths(roots: list[Path]) -> [str]:
def expand_paths(roots: List[str]) -> List[str]:
"""If an item in `roots` is a path, walks that path and gathers all `.bb` and
`.bbappend` files.
Expand Down

0 comments on commit 30721f7

Please sign in to comment.