Skip to content

Commit

Permalink
Prefect doesn't like overload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Jan 15, 2025
1 parent 0534368 commit b23492c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions flint/naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import re
from datetime import datetime
from pathlib import Path
from typing import Any, NamedTuple, overload
from typing import Any, NamedTuple

from prefect import task

Expand All @@ -16,20 +16,6 @@
from flint.options import MS


@overload
def rename_linear_to_stokes(
linear_name: Path,
stokes: str,
) -> Path: ...


@overload
def rename_linear_to_stokes(
linear_name: str,
stokes: str,
) -> str: ...


def rename_linear_to_stokes(
linear_name: Path | str,
stokes: str,
Expand Down

0 comments on commit b23492c

Please sign in to comment.