-
Notifications
You must be signed in to change notification settings - Fork 51
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
Code update/pylint mypy #95
Conversation
TODO: find out, how to solve them instead of ignoring
Can I already merge this, or do you want to solve the two mypy errors first? |
To be honest, I don't have a clue at the moment how to solve them. |
Ok, I see. I guess I will merge the changes for now, as they improve the code base a lot. We will deal with the remaining cases later... |
What's the harm of specifying the encoding? It breaks windows compatibility. |
Did a quick search in the Internet and found nothing backing your statement. |
I can imagine, took me a while to find that. It happens when you use the gpxpy testfiles (that are intentionally doctored) and it says: UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 530: character maps to To be honest once I figured out that specifying the encoding fixes it I didn't dig deeper as for my purposes I did not see any harm in having it there. edit: If I remember correctly it was because of a BOM character that trips up windows when it sees or misses it. It can easily convert it when it has the specified encoding or you can do it yourself in code. But I chose the former. |
I am not convinced that this approach is straight forward. |
|
This tries to solve some issues that arouse by updating the linting and mypy libraries.
Two mypy errors are still unsolved, but ignored: