Home
last modified time | relevance | path

Searched refs:ModuleType (Results 1 – 25 of 68) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_module.py9 ModuleType = type(sys) variable
24 foo = ModuleType.__new__(ModuleType)
32 self.assertEqual(foo.__doc__, ModuleType.__doc__)
37 foo = ModuleType.__new__(ModuleType)
45 foo = ModuleType("foo")
52 foo = ModuleType("foo")
64 foo = ModuleType("foo", "foodoc")
74 foo = ModuleType("foo", "foodoc\u1234")
84 foo = ModuleType("foo", "foodoc\u1234")
99 foo = ModuleType("foo")
[all …]
Dtest_xxlimited.py10 module: types.ModuleType
Dpydocfodder.py215 submodule = types.ModuleType(__name__ + '.submodule',
/third_party/python/Lib/unittest/test/
Dtest_loader.py113 m = types.ModuleType('m')
130 m = types.ModuleType('m')
141 m = types.ModuleType('m')
181 m = types.ModuleType('m')
208 m = types.ModuleType('m')
237 m = types.ModuleType('m')
265 m = types.ModuleType('m')
294 m = types.ModuleType('m')
320 m = types.ModuleType('m')
339 m = types.ModuleType('m')
[all …]
/third_party/python/Lib/test/test_importlib/
Dtest_util.py61 self.assertIsInstance(module, types.ModuleType)
66 class CustomModule(types.ModuleType):
160 self.assertIsInstance(module, types.ModuleType)
172 module = types.ModuleType('a.b.c')
194 module = types.ModuleType(name)
209 class FalseModule(types.ModuleType):
272 module = types.ModuleType('module')
278 module = types.ModuleType('pkg')
285 module = types.ModuleType('pkg.mod')
291 module = types.ModuleType('mod')
[all …]
Dtest_api.py110 module = types.ModuleType(name)
123 module = types.ModuleType(name)
136 module = types.ModuleType(name)
373 module = sys.modules[name] = types.ModuleType(name)
439 if isinstance(module, types.ModuleType):
450 if isinstance(module, types.ModuleType):
Dtest_lazy.py70 module = types.ModuleType(TestingImporter.module_name)
130 fresh_module = types.ModuleType(TestingImporter.module_name)
Dtest_abc.py222 mod = types.ModuleType('blah')
486 module = types.ModuleType(name)
507 module = types.ModuleType('blah')
555 module = types.ModuleType('blah')
660 module = types.ModuleType('blah')
690 module = types.ModuleType('blah')
795 module = types.ModuleType(self.name)
/third_party/python/Lib/test/test_importlib/import_/
Dtest_api.py66 mod = types.ModuleType(PKG_NAME)
77 mod = types.ModuleType(PKG_NAME)
89 mod = types.ModuleType(PKG_NAME)
Dtest___loader__.py51 module = types.ModuleType('blah')
65 module = types.ModuleType('blah')
Dtest_path.py9 from types import ModuleType
114 self.assertIsInstance(module, ModuleType)
/third_party/python/Lib/importlib/
D_common.py14 Package = Union[types.ModuleType, str]
57 return cand if isinstance(cand, types.ModuleType) else importlib.import_module(cand)
Dresources.py12 from types import ModuleType
36 Package = Union[str, ModuleType]
Dutil.py222 class _LazyModule(types.ModuleType):
231 self.__class__ = types.ModuleType
/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py144 self.assertIsInstance(module, types.ModuleType)
183 self.assertIsInstance(module, types.ModuleType)
190 self.assertIsInstance(module, types.ModuleType)
235 self.assertIsInstance(module, types.ModuleType)
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_loader.py22 self.assertIsInstance(module, types.ModuleType)
64 module = types.ModuleType(module_name)
/third_party/python/Lib/test/test_importlib/source/
Dtest_file_loader.py145 orig_module = types.ModuleType(name)
214 module = types.ModuleType('_temp')
232 module = types.ModuleType('bad name')
254 mod = types.ModuleType('_temp')
286 mod = types.ModuleType('_temp')
310 mod = types.ModuleType('_temp')
341 mod = types.ModuleType('_temp')
511 module = types.ModuleType(module_name)
Dtest_source_encoding.py94 module = types.ModuleType(self.module_name)
150 module = types.ModuleType(module_name)
/third_party/python/Lib/multiprocessing/
Dspawn.py257 main_module = types.ModuleType("__mp_main__")
286 main_module = types.ModuleType("__mp_main__")
/third_party/python/Lib/test/test_importlib/frozen/
Dtest_loader.py19 module = types.ModuleType(name)
189 mod = types.ModuleType(name)
/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource7.ts153 var modType: ModuleType = null;
165 modType = <ModuleType>aliasedModType;
201 var modType: ModuleType = null;
207 modType = new ModuleType(enclosedTypes, ambientEnclosedTypes);
253 modType = new ModuleType(enclosedTypes, ambientEnclosedTypes);
/third_party/jinja2/
Dloaders.py10 from types import ModuleType
438 class _TemplateModule(ModuleType):
/third_party/skia/third_party/externals/jinja2/
Dloaders.py10 from types import ModuleType
438 class _TemplateModule(ModuleType):
/third_party/node/tools/inspector_protocol/jinja2/
Dloaders.py14 from types import ModuleType
417 class _TemplateModule(ModuleType):
/third_party/mindspore/mindspore/_extends/parse/
Dparser.py170 isinstance(resolve_, (types.FunctionType, types.MethodType, types.ModuleType)):
342 if isinstance(obj, types.ModuleType):
633 if not isinstance(value, types.ModuleType):

123