Skip to content

Commit

Permalink
fix linter warnings (#274)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <[email protected]>
  • Loading branch information
dirk-thomas authored Jul 17, 2019
1 parent 561a23a commit 36a15e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions launch/launch/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from .launch_description_entity import LaunchDescriptionEntity

if False:
from .frontend import Entity
from .frontend import Parser
from .frontend import Entity # noqa: F401
from .frontend import Parser # noqa: F401


class Action(LaunchDescriptionEntity):
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/actions/declare_launch_argument.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ..action import Action
from ..frontend import Entity
from ..frontend import expose_action
from ..frontend import Parser
from ..frontend import Parser # noqa: F401
from ..launch_context import LaunchContext
from ..some_substitutions_type import SomeSubstitutionsType
from ..substitution import Substitution
Expand Down
4 changes: 2 additions & 2 deletions launch/launch/frontend/expose.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from ..substitution import Substitution

if False:
from .entity import Entity
from .parser import Parser
from .entity import Entity # noqa: F401
from .parser import Parser # noqa: F401

action_parse_methods = {}
substitution_parse_methods = {}
Expand Down
5 changes: 3 additions & 2 deletions launch/launch/frontend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

if False:
from ..launch_description import LaunchDescription
from ..launch_description import LaunchDescription # noqa: F401


class Parser:
Expand Down Expand Up @@ -83,7 +83,8 @@ def escape_characters(self, value: Text) -> SomeSubstitutionsType:

def parse_description(self, entity: Entity) -> 'LaunchDescription':
"""Parse a launch description."""
from ..launch_description import LaunchDescription # Avoid recursive import
# Avoid recursive import
from ..launch_description import LaunchDescription # noqa: F811
if entity.type_name != 'launch':
raise RuntimeError("Expected 'launch' as root tag")
actions = [self.parse_action(child) for child in entity.children]
Expand Down

0 comments on commit 36a15e7

Please sign in to comment.