We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb65193 commit 3430babCopy full SHA for 3430bab
1 file changed
quantities/registry.py
@@ -21,6 +21,8 @@ def __getitem__(self, string):
21
all_builtins = dir(builtins)
22
# because we have kilobytes, other bytes we have to remove bytes
23
all_builtins.remove("bytes")
24
+ # have to deal with octet as well
25
+ all_builtins.remove("oct")
26
for builtin in all_builtins:
27
if builtin in string:
28
raise RuntimeError(f"String parsing error for {string}. Enter a string accepted by quantities")
0 commit comments