Skip to content

Commit 7138976

Browse files
committed
Small lint changes..
* Add # noqa to the __version__ import * Remove #!/usr/bin/env python3 which is wrong here * Remove unused imports in buitins
1 parent 712c9d2 commit 7138976

12 files changed

Lines changed: 2662 additions & 856 deletions

File tree

mathics/builtin/__init__.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
print(f" mathics.builtin loads from {__file__[:-11]}")
4242
continue
4343

44-
if __version__ != module.__version__:
45-
print(f"Version {module.__version__} in the module do not match with {__version__}")
44+
if __version__ != module.__version__:
45+
print(
46+
f"Version {module.__version__} in the module do not match with {__version__}"
47+
)
4648

4749
modules.append(module)
4850

@@ -78,7 +80,7 @@ def is_builtin(var):
7880
# This set the default context for symbols in mathics.builtins
7981
if not type(instance).context:
8082
type(instance).context = "System`"
81-
_builtins.append( (instance.get_name(), instance))
83+
_builtins.append((instance.get_name(), instance))
8284
builtins_by_module[module.__name__].append(instance)
8385

8486

@@ -116,9 +118,11 @@ def add_builtins(new_builtins):
116118

117119

118120
def builtins_dict():
119-
return { builtin.get_name() : builtin
120-
for modname, builtins in builtins_by_module.items()
121-
for builtin in builtins}
121+
return {
122+
builtin.get_name(): builtin
123+
for modname, builtins in builtins_by_module.items()
124+
for builtin in builtins
125+
}
122126

123127

124128
def get_module_doc(module):

0 commit comments

Comments
 (0)