aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-12-04 09:31:50 +0800
committerGravatar ionite34 <[email protected]>2022-12-04 09:31:50 +0800
commitaf3f7a7460a7faf69fc2fd247c956d52c8e94e4e (patch)
treef9cf349f0e22a021e7224e149faf587c2230d3cd
parentFix as_dict type hint (diff)
Add comment for preload_dict intentions
-rw-r--r--snekbox/memfs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/snekbox/memfs.py b/snekbox/memfs.py
index 7937a14..d02c029 100644
--- a/snekbox/memfs.py
+++ b/snekbox/memfs.py
@@ -147,5 +147,6 @@ class MemFS:
res = sorted(self.files(limit, pattern), key=lambda f: f.path)
if preload_dict:
for file in res:
+ # Loads the cached property as attribute
_ = file.as_dict
return res