Skip to content

Unsupported type NoneType #284

@gewlar

Description

@gewlar

Nagini fails during translation in this setup when running nagini --base-dir=../ foo.py from a common folder:

# __init__.py
from .A import A
# A.py
class A():
    @property
    def value(self) -> int:
        return 5
# foo.py
from nagini_contracts.contracts import *
from . import *

class foo():
    def test(self, a: A) -> bool:
        Requires(a.value > 4)
        return True

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