File: 0063-Flake8-fixes.patch

package info (click to toggle)
numba 0.56.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,672 kB
  • sloc: python: 183,651; ansic: 15,370; cpp: 2,259; javascript: 424; sh: 308; makefile: 174
file content (47 lines) | stat: -rw-r--r-- 1,395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 626ee8c36eaebdef52a4aafbe77e5748f1fa2488 Mon Sep 17 00:00:00 2001
Origin: https://github.com/numba/numba/pull/8590
From: Siu Kwan Lam <1929845+sklam@users.noreply.github.com>
Date: Fri, 18 Nov 2022 08:24:38 -0600
Subject: [PATCH 09/14] Flake8 fixes

---
 numba/core/overload_glue.py | 3 +--
 numba/misc/codetype.py      | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/numba/core/overload_glue.py b/numba/core/overload_glue.py
index a9c34bec35b..dd0c9d510b2 100644
--- a/numba/core/overload_glue.py
+++ b/numba/core/overload_glue.py
@@ -8,6 +8,7 @@
 from collections import defaultdict
 
 from numba.core import errors
+from numba.misc import codetype
 
 
 class _OverloadWrapper(object):
@@ -39,10 +40,8 @@ def stub(tyctx):
         new_varnames = [*stub_code.co_varnames]
         new_varnames.extend(varnames)
         co_argcount = len(new_varnames)
-        co_args = [co_argcount]
         additional_co_nlocals = len(varnames)
 
-        from numba.misc import codetype
 
         new_code = codetype.copy_code_type(
             stub_code,
diff --git a/numba/misc/codetype.py b/numba/misc/codetype.py
index 233fad1751f..93ee9894c7f 100644
--- a/numba/misc/codetype.py
+++ b/numba/misc/codetype.py
@@ -2,6 +2,7 @@
 
 from numba.core import utils
 
+
 def copy_code_type(code: types.CodeType, **kwargs) -> types.CodeType:
     """Copy CodeType with mutations.