Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana-s committed Dec 13, 2024
1 parent 1f31cd7 commit 9711107
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions guppylang/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@
from guppylang.tys.arg import Argument
from guppylang.tys.param import Parameter
from guppylang.tys.subst import Inst
from guppylang.tys.ty import (
NumericType,
)
from guppylang.tys.ty import NumericType

S = TypeVar("S")
T = TypeVar("T")
Expand Down Expand Up @@ -624,7 +622,7 @@ def _find_load_call(sources: SourceMap) -> Span | None:
info = inspect.getframeinfo(load_frame)
filename = info.filename
lineno = info.lineno
sources.add_file(info.filename)
sources.add_file(filename)
# If we don't support python <= 3.10, this can be done better with
# info.positions which gives you exact offsets.
# For now over approximate and make the span cover the entire line.
Expand Down

0 comments on commit 9711107

Please sign in to comment.