Skip to content

Type or doc improvement? #13689

Open
Open

Description

@1himan

Proposed documentation enhancement

preprocessing.ICA.score_sources's - l_freq and h_freq defaults to None but docs says it is float.

Shall we improve types and specify the same in the parameter docstring?

it'd just be small change like:
l_freq: float | None = None,

Activity

  1. welcome commented on Feb 25, 2026

    @welcome

    Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

  2. tsbinns commented on Feb 25, 2026

    @tsbinns
    Member

    Adding None as a recognised type within the docstring is for sure welcome! For type hints, as far as I know how/if we are handling this is an ongoing discussion.

  3. RaoSBK commented on Feb 25, 2026

    @RaoSBK

    Hi @1himan
    I'd like to take this issue and update the docstring to properly reflect that l_freq and h_freq can be float | None, keeping the change limited to documentation only.
    I'll open a PR once ready.

  4. 1himan commented on Feb 26, 2026

    @1himan
    ContributorAuthor

    Hi @1himan
    I'd like to take this issue and update the docstring to properly reflect that l_freq and h_freq can be float | None, keeping the change limited to documentation only.
    I'll open a PR once ready.

    Hey @RaoSBK thanks for your interest in this, but I'm already working on this one
    You may find other issues labelled as doc or easy and work on it. Thanks again :)

  5. drammock commented on Mar 7, 2026

    @drammock
    Member

    Please add xref to the PR that fixed this

  6. 1himan commented on Mar 8, 2026

    @1himan
    ContributorAuthor

    hey @drammock, the PR is here. Though it is not merged yet, I thought I should close this, since it really a small issue, and would be noise. Feel free to reopen this if you want.

    :)

  7. drammock commented on Mar 8, 2026

    @drammock
    Member

    We typically leave issues open until the PR is merged, and auto-close them by adding relevant notes to the PR description (eg closes #12345 or fixes #12345)

  8. added 2 commits that reference this issue on Mar 25, 2026
    f8eb310
    e064330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions