class FakeFSCache(FileSystemCache): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | init |
Is this path an __init__.py under a package root? |
Method | isdir |
Undocumented |
Method | isfile |
Undocumented |
Method | listdir |
Undocumented |
Instance Variable | files |
Undocumented |
Inherited from FileSystemCache
:
Method | exists |
Undocumented |
Method | exists |
Return whether path exists - checking path components in case sensitive fashion, up to prefix. |
Method | flush |
Start another transaction and empty all caches. |
Method | hash |
Undocumented |
Method | isfile |
Return whether path exists and is a file. |
Method | read |
Undocumented |
Method | samefile |
Undocumented |
Method | set |
Undocumented |
Method | stat |
Undocumented |
Instance Variable | exists |
Undocumented |
Instance Variable | fake |
Undocumented |
Instance Variable | hash |
Undocumented |
Instance Variable | isfile |
Undocumented |
Instance Variable | listdir |
Undocumented |
Instance Variable | listdir |
Undocumented |
Instance Variable | package |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | read |
Undocumented |
Instance Variable | stat |
Undocumented |
Instance Variable | stat |
Undocumented |
Method | _fake |
Prime the cache with a fake __init__.py file. |
Is this path an __init__.py under a package root? This is used to detect packages that don't contain __init__.py files, which is needed to support Bazel. The function should only be called for non-existing files. It will return True if it refers to a __init__.py file that Bazel would create, so that at runtime Python would think the directory containing it is a package. For this to work you must pass one or more package roots using the --package-root flag. As an exceptional case, any directory that is a package root itself will not be considered to contain a __init__.py file. This is different from the rules Bazel itself applies, but is necessary for mypy to properly distinguish packages from other directories. See https://docs.bazel.build/versions/master/be/python.html, where this behavior is described under legacy_create_init.