From a2258f38bbb44fb41dc228ba568fd49c5e23781a Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Thu, 9 Nov 2023 14:42:22 -0500 Subject: [PATCH] git types --- fsspec/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fsspec/core.py b/fsspec/core.py index dba8fa121..01dc14ab2 100644 --- a/fsspec/core.py +++ b/fsspec/core.py @@ -1,10 +1,11 @@ +from __future__ import annotations + import io import logging import os import re from glob import has_magic from pathlib import Path -from typing import Any, Literal, Optional # for backwards compat, we export cache things from here too from .caching import ( # noqa: F401 @@ -473,8 +474,8 @@ def open( def open_local( url: str | list[str] | Path | list[Path], - mode: Optional[Literal["rb"]] = "rb", - **storage_options: Optional[Any], + mode: str, + **storage_options: dict, ) -> str | list[str]: """Open file(s) which can be resolved to local