MCPcopy Create free account
hub / github.com/twisted/twisted / __init__

Method __init__

src/twisted/python/modules.py:312–328  ·  view source on GitHub ↗

Create a PythonModule. Do not construct this directly, instead inspect a PythonPath or other PythonModule instances. @param name: see ivar @param filePath: see ivar @param pathEntry: see ivar

(
        self, name: str, filePath: FilePath[str], pathEntry: PathEntry
    )

Source from the content-addressed store, hash-verified

310 """
311
312 def __init__(
313 self, name: str, filePath: FilePath[str], pathEntry: PathEntry
314 ) -> None:
315 """
316 Create a PythonModule. Do not construct this directly, instead inspect a
317 PythonPath or other PythonModule instances.
318
319 @param name: see ivar
320 @param filePath: see ivar
321 @param pathEntry: see ivar
322 """
323 _name = nativeString(name)
324 assert not _name.endswith(".__init__")
325 self.name: str = _name
326 self.filePath = filePath
327 self.parentPath = filePath.parent()
328 self.pathEntry = pathEntry
329
330 def _getEntry(self):
331 return self.pathEntry

Callers

nothing calls this directly

Calls 2

nativeStringFunction · 0.90
parentMethod · 0.45

Tested by

no test coverage detected