Skip to content

Commit

Permalink
Fix compatibility with older Python
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jun 11, 2024
1 parent 559971f commit f4a87d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jupyterlab_gallery/manager.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from collections import defaultdict
from datetime import datetime
from pathlib import Path
from typing import Optional
from threading import Thread

from traitlets.config.configurable import LoggingConfigurable
from traitlets import Dict, List, Unicode
from threading import Thread

from .git_utils import (
extract_repository_owner,
Expand All @@ -15,7 +16,7 @@


class GalleryManager(LoggingConfigurable):
_has_updates: dict[str, bool | None] = defaultdict(lambda: None)
_has_updates: dict[str, Optional[bool]] = defaultdict(lambda: None)

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit f4a87d9

Please sign in to comment.