Skip to content

Commit

Permalink
Bump pyright from 1.1.366 to 1.1.378 (#594)
Browse files Browse the repository at this point in the history
* Bump pyright from 1.1.366 to 1.1.378

Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.366 to 1.1.378.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.366...v1.1.378)

---
updated-dependencies:
- dependency-name: pyright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix typing issue in Observation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Haris Sahovic <[email protected]>
  • Loading branch information
dependabot[bot] and hsahovic authored Sep 2, 2024
1 parent 894b335 commit 4223b1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ flake8
isort==5.13.2
nbsphinx
pre-commit
pyright==1.1.366
pyright==1.1.378
pytest
pytest-asyncio
pytest-cov
Expand Down
6 changes: 2 additions & 4 deletions src/poke_env/environment/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ class Observation:
weather: Dict[Weather, int] = field(default_factory=dict)
fields: Dict[Field, int] = field(default_factory=dict)

active_pokemon: Union[ObservedPokemon, List[Optional[ObservedPokemon]], None] = None
opponent_active_pokemon: Union[
ObservedPokemon, List[Optional[ObservedPokemon]], None
] = None
active_pokemon: Union[ObservedPokemon, None, List[ObservedPokemon]] = None
opponent_active_pokemon: Union[ObservedPokemon, List[ObservedPokemon], None] = None

# The player's team, so we can track states of mons throughout the battle
team: Dict[str, Optional[ObservedPokemon]] = field(default_factory=dict)
Expand Down

0 comments on commit 4223b1d

Please sign in to comment.