Skip to content
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

Game.Pieces unusable #1

Closed
Fischchen opened this issue Sep 14, 2021 · 4 comments
Closed

Game.Pieces unusable #1

Fischchen opened this issue Sep 14, 2021 · 4 comments

Comments

@Fischchen
Copy link

Hey,

I've found that the game.pieces and game.getPiece() throw errors as they are initialized as None.

Furthermore, game.pieces is unusable due to the aforementioned problem.

Is there a workaround, or could you please fix this?

Thanks in advance,
Morris

@Fischchen Fischchen changed the title Game.Pieces Game.Pieces unusable Sep 14, 2021
@rpkak
Copy link
Owner

rpkak commented Sep 14, 2021

Do you initialize Game manuel?

@Fischchen
Copy link
Author

No, I'm inside the calculate function. I now seem to be able to loop through game.pieces, but the linter is not happy about it being initialized as None. Is there a way to not initialize it as none?

@rpkak rpkak mentioned this issue Sep 17, 2021
@rpkak
Copy link
Owner

rpkak commented Sep 17, 2021

Ok @Fischchen,

Can you try out, if the linter error exists as well, if sc-client uses typing?

Install:

pip install git+https://github.com/rpkak/sc-client-python@typing

If yes, I will release it soon.

@rpkak
Copy link
Owner

rpkak commented Sep 18, 2021

@Fischchen This should be solved in version 1.2.1.

Please reopen if the linting error exists in version 1.2.1 as well.

@rpkak rpkak closed this as completed Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants