Skip to content

Commit

Permalink
Add type checks for other python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Dec 20, 2024
1 parent 52a4ccf commit 9b73d06
Show file tree
Hide file tree
Showing 20 changed files with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Setting up runtime type checking for this package
# We need to do this again here because the dsd imports
# the decisions and actions from this package in a standalone way
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Setting up runtime type checking for this package
# We need to do this again here because the dsd imports
# the decisions and actions from this package in a standalone way
from beartype.claw import beartype_this_package

beartype_this_package()
5 changes: 5 additions & 0 deletions bitbots_misc/bitbots_tf_buffer/bitbots_tf_buffer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from typing import Optional

import tf2_ros as tf2

# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package
from builtin_interfaces.msg import Duration as DurationMsg
from builtin_interfaces.msg import Time as TimeMsg
from geometry_msgs.msg import TransformStamped
Expand All @@ -10,6 +13,8 @@

from bitbots_tf_buffer.cpp_wrapper import Buffer as CppBuffer

beartype_this_package()


class Buffer(tf2.BufferCore, tf2.BufferInterface):
"""
Expand Down
4 changes: 4 additions & 0 deletions bitbots_misc/bitbots_tts/bitbots_tts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
4 changes: 4 additions & 0 deletions bitbots_misc/bitbots_utils/bitbots_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
4 changes: 4 additions & 0 deletions bitbots_misc/system_monitor/system_monitor/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
4 changes: 4 additions & 0 deletions bitbots_motion/bitbots_splines/bitbots_splines/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Setting up runtime type checking for this package
# We need to do this again here because the dsd imports
# the decisions and actions from this package in a standalone way
from beartype.claw import beartype_this_package
from dynamic_stack_decider.abstract_action_element import AbstractActionElement

from bitbots_localization_handler.localization_dsd.localization_blackboard import LocalizationBlackboard

beartype_this_package()


class AbstractLocalizationActionElement(AbstractActionElement):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Setting up runtime type checking for this package
# We need to do this again here because the dsd imports
# the decisions and actions from this package in a standalone way
from beartype.claw import beartype_this_package
from dynamic_stack_decider.abstract_decision_element import AbstractDecisionElement

from bitbots_localization_handler.localization_dsd.localization_blackboard import LocalizationBlackboard

beartype_this_package()


class AbstractLocalizationDecisionElement(AbstractDecisionElement):
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
4 changes: 4 additions & 0 deletions bitbots_vision/bitbots_vision/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Setting up runtime type checking for this package
from beartype.claw import beartype_this_package

beartype_this_package()

0 comments on commit 9b73d06

Please sign in to comment.