File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1313except ImportError :
1414 import json
1515
16- from ..asyn import AsyncFileSystem , running_async
16+ from ..asyn import AsyncFileSystem
1717from ..callbacks import _DEFAULT_CALLBACK
1818from ..core import filesystem , open , split_protocol
1919from ..spec import AbstractFileSystem
@@ -711,11 +711,6 @@ def _reference_part(self, part="metadata"):
711711 if part != "metadata" and part not in self .dirs :
712712 raise FileNotFoundError (f"prefix { part } " )
713713 if part not in self .dataframes :
714- if running_async ():
715- raise RuntimeError (
716- "Cannot load references in async context, because"
717- "load may trigger nested async operations"
718- )
719714 url = f"{ self .fo } /{ part } .parq" if self .lazy else self .fo
720715 fs , path = fsspec .core .url_to_fs (url , ** self .target_options )
721716 pf = fastparquet .ParquetFile (path , fs = fs )
You can’t perform that action at this time.
0 commit comments