Skip to content

Commit

Permalink
type syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Feb 22, 2024
1 parent 1264072 commit 5cfa17c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fsspec/implementations/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import base64
import io
from typing import Optional
from urllib.parse import unquote

from fsspec import AbstractFileSystem
Expand Down Expand Up @@ -49,7 +50,7 @@ def _open(
return io.BytesIO(self.cat_file(path))

@staticmethod
def encode(data: bytes, mime: str | None = None):
def encode(data: bytes, mime: Optional[str] = None):
"""Format the given data into data-URL syntax
This version always base64 encodes, even when the data is ascii/url-safe.
Expand Down

0 comments on commit 5cfa17c

Please sign in to comment.