File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ def get_njit_funcs(pkg_dir):
4141 func_name = node .name
4242 for decorator in node .decorator_list :
4343 decorator_name = None
44-
4544 if isinstance (decorator , ast .Name ):
4645 # Bare decorator
4746 decorator_name = decorator .id
@@ -84,7 +83,7 @@ def check_fastmath(pkg_dir, pkg_name):
8483 msg = (
8584 "Found one or more `@njit` functions that are missing the `fastmath` flag. "
8685 )
87- msg += f"The function(s) are:\n { missing_fastmath } \n "
86+ msg += f"The functions are:\n { missing_fastmath } \n "
8887 raise ValueError (msg )
8988
9089 return
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ def get_njit_funcs():
4747 func_name = node .name
4848 for decorator in node .decorator_list :
4949 decorator_name = None
50-
5150 if isinstance (decorator , ast .Name ):
5251 # Bare decorator
5352 decorator_name = decorator .id
You can’t perform that action at this time.
0 commit comments