Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dagger of bubble #55

Open
toumix opened this issue Feb 23, 2022 · 0 comments
Open

Dagger of bubble #55

toumix opened this issue Feb 23, 2022 · 0 comments

Comments

@toumix
Copy link
Collaborator

toumix commented Feb 23, 2022

The dagger of bubbles is broken. Indeed, Bubble.dagger is inherited from Box.dagger which assumes that the subclasses keep the same arguments name, dom, cod, _dagger for initialisation.

>>> f = Box("f", Ty("x"), Ty("y"))
>>> f.bubble().dagger()

... in Box.dagger(self)
    576 def dagger(self):
--> 577     return type(self)(
    578         name=self.name, dom=self.cod, cod=self.dom,
    579         data=self.data, _dagger=not self._dagger)

TypeError: __init__() missing 1 required positional argument: 'inside'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant