Skip to content

Commit

Permalink
Fix 'ABCMeta' object is not subscriptable error in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Mar 8, 2024
1 parent 2fb3a46 commit 7a3d4c8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions rope/contrib/autoimport/sqlite.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""AutoImport module for rope."""

from __future__ import annotations

import contextlib
import json
import re
Expand All @@ -14,8 +16,16 @@
from itertools import chain
from pathlib import Path
from threading import local
from collections.abc import Collection
from typing import Generator, Iterable, Iterator, List, Optional, Set, Tuple
from typing import (
Generator,
Iterable,
Iterator,
List,
Optional,
Set,
Tuple,
TYPE_CHECKING,
)

from rope.base import exceptions, libutils, resourceobserver, taskhandle, versioning
from rope.base.project import Project
Expand All @@ -42,6 +52,10 @@
from rope.refactor import importutils


if TYPE_CHECKING:
from collections.abc import Collection


def get_future_names(
packages: List[Package], underlined: bool, job_set: taskhandle.BaseJobSet
) -> Generator[Future[Collection[Name]], None, None]:
Expand Down

0 comments on commit 7a3d4c8

Please sign in to comment.