Skip to content

Vermin assumes byte union to be a type union #103

Description

@Wenzel

Describe the bug

The following line is assumed to be a type union (3.10) by vermin:

if (global_byte | local_byte) != global_byte:

To Reproduce
Found while scanning the kafl.fuzzer project with vermin.

$ vermin -vvv kafl_fuzzer | grep 3.10
!2, 3.10     /home/mtarral/kAFL/kafl/fuzzer/kafl_fuzzer/manager/bitmap.py
  L93: union types as `X | Y` requires !2, 3.10
Minimum required versions: 3.10

You can check the "faulty" line

Expected behavior
This shouldn't be flagged as a union type (and shouldn't require 3.10, since our software runs fine on 3.8)

Environment (please complete the following information):

  • Vermin version: 1.4.2 (pip)

Thanks for vermin !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions