-
Notifications
You must be signed in to change notification settings - Fork 890
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
Strange inconsistent behaviour #1208
Comments
Strangely enough, it partially works if I commet out It seems to be related to #836 |
Just trying to understand, what formatted result did you expect? |
At least something consistent, but ideally: class Foo:
def bar(self) -> None:
if self.observer.state_space is not None:
state_spaces = observation_space.setdefault(
'states', gym.spaces.Dict())
try:
self.env.register_variable( # type: ignore[attr-defined]
'state', state, None, self.observer.name)
except ValueError:
pass
feature_spaces = observation_space.setdefault(
'features', gym.spaces.Dict()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't understand why two seemingly identical lines get formatted differently. The inconsistency is very surprising to me. Maybe there is some undocumented penalty hiding somewhere in the implementation. In particular,
is reformatted as,
Here are the options I'm using:
The text was updated successfully, but these errors were encountered: