We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fs.memoryfs
1 parent 97d5b77 commit eb62026Copy full SHA for eb62026
1 file changed
fs/memoryfs.py
@@ -5,7 +5,6 @@
5
6
import contextlib
7
import io
8
-import itertools
9
import os
10
import time
11
import typing
@@ -39,6 +38,7 @@
39
38
SupportsInt,
40
Union,
41
Text,
+ Tuple,
42
)
43
from .base import _OpendirFactory
44
from .info import RawInfo
@@ -608,7 +608,8 @@ def scandir(
608
filenames = filenames[start:end]
609
# yield info with the right namespaces
610
for name in filenames:
611
- yield dir_entry.get_entry(name).to_info(namespaces=namespaces)
+ entry = typing.cast(_DirEntry, dir_entry.get_entry(name))
612
+ yield entry.to_info(namespaces=namespaces)
613
614
def setinfo(self, path, info):
615
# type: (Text, RawInfo) -> None
0 commit comments