Skip to content

Fix lint failure by restoring stdlib/third-party import order in functions.py - #6

Draft
willayy with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-lint-job
Draft

Fix lint failure by restoring stdlib/third-party import order in functions.py#6
willayy with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-lint-job

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

The lint GitHub Actions job was failing on pylint C0411 due to incorrect import grouping/order in adicts/functions.py. This PR aligns the module imports with pylint expectations so the lint check no longer fails on import-order violations.

  • Root cause

    • collections.abc.Mapping (stdlib) was placed after numpy imports (third-party), triggering wrong-import-order.
  • Code changes

    • Reordered top-level imports in adicts/functions.py to keep stdlib imports before third-party imports.
    • No functional/runtime behavior changes to dictionary operation APIs.
from typing import TypeVar, Callable
from collections.abc import Mapping

import numpy as np
import numpy.typing as npt

Copilot AI changed the title [WIP] Fix failing GitHub Actions job lint Fix lint failure by restoring stdlib/third-party import order in functions.py Jun 22, 2026
Copilot AI requested a review from willayy June 22, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants