Skip to content

Commit

Permalink
fix: Add type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetteadhikari committed Aug 28, 2024
1 parent 2d221ce commit 35c4a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda_smithy/linter/lints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import re
from collections.abc import Sequence
from typing import Any, Dict, List, Literal, Optional
from typing import Any, Dict, List, Literal, Optional, Union

from conda.exceptions import InvalidVersionSpec
from conda.models.version import VersionOrder
Expand Down Expand Up @@ -44,7 +44,7 @@ def lint_section_order(
section_order_sorted = sorted(major_sections, key=order.index)

if major_sections != section_order_sorted:
section_order_sorted_str: str | map[str] = map(
section_order_sorted_str: Union[str, map[str]] = map(
lambda s: f"'{s}'", section_order_sorted
)
section_order_sorted_str = ", ".join(section_order_sorted_str)
Expand Down
2 changes: 1 addition & 1 deletion conda_smithy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pydantic import BaseModel, ConfigDict, Field, create_model

try:
from enum import StrEnum
from enum import StrEnum # type: ignore
except ImportError:
from backports.strenum import StrEnum # type: ignore

Expand Down

0 comments on commit 35c4a87

Please sign in to comment.