Skip to content

NpmVersionRange.from_native not working  #79

Description

@ziadhany
>>> from univers.version_range import NpmVersionRange
>>> NpmVersionRange.from_native(">=6.1.3")
Traceback (most recent call last):
  File "/home/ziad/Desktop/open_source/vulnerablecode/venv/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-7be7de982c98>", line 1, in <module>
    NpmVersionRange.from_native(">=6.1.3")
  File "/home/ziad/Desktop/open_source/vulnerablecode/venv/lib/python3.7/site-packages/univers/version_range.py", line 251, in from_native
    assert isinstance(clause, (AnyOf, AllOf))
AssertionError

Activity

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