-
Notifications
You must be signed in to change notification settings - Fork 163
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
Python typing error #4844
Comments
This error comes from the helper for the typing, this file should not be executed during script parsing. I'd recommend one of:
|
@Cjkjvfnby Can we use execution context to conditionally import those files? |
Not sure what you mean. This file should not be imported during FOCS parsing. It's imported inside the pyi file that is never executed (static type checker is using it). I'll check if I can move it somewhere. |
Can we write something like: if not ParserContext:
from focs._species import * I can define builtins in parser if needed. |
Actually I'd prefer to include |
Still getting errors similar to this in master:
|
@o01eg @Cjkjvfnby any updates about this? |
Still get:
|
@geoffthemedio Maybe make parser more strict so such errors will cause tests to fail? |
If that makes sense to you, I have no objection... |
In latest master (d598700) but not (0414d6b) with SDK14, running freeorion outputs to the console:
And in freeorion.log:
The text was updated successfully, but these errors were encountered: