Repository navigation
Replies: 1 comment
Environment
Minimal reproductionfrom riichienv import RiichiEnv
env = RiichiEnv()
obs = next(iter(env.reset().values()))
print(obs.round_wind) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I have a question about the Python
ObservationAPI.I noticed that fields such as
round_wind,honba,scores,discards, anddora_indicatorsare accessible at runtime:This works correctly, but static type checkers report errors such as:
From what I can see, these fields exist on the Rust
Observationstruct and are exposed to Python, but some of them do not appear to be declared on the 4-playerObservationclass in_riichienv.pyi.So I wanted to ask: are fields such as
round_wind,honba,scores,discards, etc. intended to be part of the public Python API forObservation?If so, would it be reasonable for the 4-player
Observationtype stub to expose these fields as well?I just want to make sure I am using the intended API before relying on these attributes in my project. If there is another recommended way to access this information, I would be happy to use that instead.
Thank you!
All reactions