Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltat committed Nov 16, 2023
1 parent 6514719 commit ba28e4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/robotlibcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import inspect
import os
from dataclasses import dataclass
from typing import Any, Callable, List, Optional, Union, get_type_hints, ForwardRef
from typing import Any, Callable, List, Optional, Union, get_type_hints

from robot.api.deco import keyword # noqa: F401
from robot.errors import DataError
Expand Down Expand Up @@ -226,7 +226,7 @@ def _get_arg_spec(cls, function: Callable) -> inspect.FullArgSpec:
@classmethod
def _get_type_hint(cls, function: Callable):
try:
hints = get_type_hints(function)
hints = get_type_hints(function)
except Exception: # noqa: BLE001
hints = function.__annotations__
return hints
Expand Down
2 changes: 0 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ def lint(ctx):
command = [
"robotidy",
"--transform",
"RenameKeywords",
"--transform",
"RenameTestCases",
"-c",
"RenameTestCases:capitalize_each_word=True",
Expand Down

0 comments on commit ba28e4e

Please sign in to comment.