Show More
@@ -92,7 +92,11 b' def loadpath(path, module_name):' | |||
|
92 | 92 | # module/__init__.py style |
|
93 | 93 | d, f = os.path.split(path) |
|
94 | 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 | 100 | else: |
|
97 | 101 | try: |
|
98 | 102 | return imp.load_source(module_name, path) |
General Comments 0
You need to be logged in to leave comments.
Login now