You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withzopen(path, "w", encoding=encoding) asf:
# do something
To be more precise, its not about passing something as mode, but it should contain "t" or "b".
What happened?
I am using maggma, with a new monty version I get this warning.
Version
0.71.1
Which OS?
MacOS
Windows
Linux
Log output
/path/to/python/lib/python3.12/site-packages/maggma/stores/mongolike.py:687: FutureWarning: We strongly discourage using implicit binary/text
`mode`, and this would not be allowed after 2025-06-01. I.e. you should pass t/b in`mode`.
The text was updated successfully, but these errors were encountered:
Hi @FabiPi3 , thanks for reporting. This has already been fixed in #1021 . Please update your maggma install and the warning should go away (but if it doesn't , please reopen).
Edit: actually I see that you are already on the latest version. It appears the monty warning has changed (it previously instructed to set mode='r'). I will try to update maggma soon to use t instead, or feel free to open a PR if you're able.
Code snippet
To be more precise, its not about passing something as mode, but it should contain "t" or "b".
What happened?
I am using maggma, with a new monty version I get this warning.
Version
0.71.1
Which OS?
Log output
The text was updated successfully, but these errors were encountered: