Skip to content

Some type annotations say str but function actually expects list of strs #1205

Open

Description

@JHertz5

There are a few functions, e.g. vunit.ui.set_compile_option that have type annotations indicating that they expect a str for value, when actually they expect a list of str. This throws up errors on my python linter when using VUnit in python scripts.

Image

I'm planning to raise a PR to hopefully resolve this.

Activity

  1. JHertz5 commented on Jun 23, 2026

    @JHertz5
    ContributorAuthor

    Since the latest VUnit releases support only Python3.10+, I can use the simpler | syntax for multiple type annotations rather than having to use the pre 3.10 Union from typing.

  2. JHertz5 commented on Jun 23, 2026

    @JHertz5
    ContributorAuthor

    I've created PR#1206 to resolve this issue.

  3. rpatel3001 commented on Jul 23, 2026

    @rpatel3001

    some options also expect bool

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions