Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add type hints #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
shima004 merged 1 commit into main from fix/type-hint
Mar 31, 2026
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/adf_core_python/core/component/module/abstract_module.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING

from structlog.stdlib import BoundLogger

from adf_core_python.core.logger.logger import get_agent_logger

if TYPE_CHECKING:
Expand All @@ -25,17 +27,17 @@ def __init__(
module_manager: ModuleManager,
develop_data: DevelopData,
) -> None:
self._agent_info = agent_info
self._world_info = world_info
self._scenario_info = scenario_info
self._module_manager = module_manager
self._develop_data = develop_data
self._agent_info: AgentInfo = agent_info
self._world_info: WorldInfo = world_info
self._scenario_info: ScenarioInfo = scenario_info
self._module_manager: ModuleManager = module_manager
self._develop_data: DevelopData = develop_data
self._count_precompute: int = 0
self._count_resume: int = 0
self._count_prepare: int = 0
self._count_update_info: int = 0
self._count_update_info_current_time: int = 0
self._logger = get_agent_logger(
self._logger: BoundLogger = get_agent_logger(
f"{self.__class__.__module__}.{self.__class__.__qualname__}",
self._agent_info,
)
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /