##// END OF EJS Templates
extensions: suppress a pytype failure due to a typeshed bug...
Augie Fackler -
r44106:da5ccc59 default
parent child Browse files
Show More
@@ -92,7 +92,11 b' def loadpath(path, module_name):'
92 # module/__init__.py style
92 # module/__init__.py style
93 d, f = os.path.split(path)
93 d, f = os.path.split(path)
94 fd, fpath, desc = imp.find_module(f, [d])
94 fd, fpath, desc = imp.find_module(f, [d])
95 return imp.load_module(module_name, fd, fpath, desc)
95 # When https://github.com/python/typeshed/issues/3466 is fixed
96 # and in a pytype release we can drop this disable.
97 return imp.load_module(
98 module_name, fd, fpath, desc # pytype: disable=wrong-arg-types
99 )
96 else:
100 else:
97 try:
101 try:
98 return imp.load_source(module_name, path)
102 return imp.load_source(module_name, path)
General Comments 0
You need to be logged in to leave comments. Login now