Skip to content

Commit

Permalink
Fix 3.8 typing incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aazuspan committed Aug 20, 2024
1 parent 2e9f6ca commit 31b695b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spinasm_lsp/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import bisect
import copy
from dataclasses import dataclass
from typing import Generator, Generic, Literal, TypeVar, cast, overload
from typing import Generator, Generic, Literal, TypeVar, overload

import lsprotocol.types as lsp

Expand Down Expand Up @@ -223,7 +223,7 @@ def semantic_encoding(self, prev_token_start: lsp.Position) -> list[int]:
return []

# The index of each modifier is encoded into a bitmask
modifier_bitmask = sum(1 << i for i in cast(list[int], token_modifiers))
modifier_bitmask = sum(1 << i for i in token_modifiers) # type: ignore

return [
delta_line,
Expand Down

0 comments on commit 31b695b

Please sign in to comment.