Skip to content

Conversation

@flying-sheep
Copy link

No description provided.

@OJFord
Copy link

OJFord commented Jul 22, 2016

I just encountered this too, would be great if this could be merged @prechelt.

@OJFord
Copy link

OJFord commented Jul 22, 2016

Actually, it just hits an error further down the line.

I've found a workaround though:

import typecheck as tc
from collections import namedtuple

NT = namedtuple('NT', 'x')

@tc.typecheck
def foobar(nt: lambda x: isinstance(x, NT)):
    pass

@ghost ghost self-assigned this Jul 15, 2019
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

Successfully merging this pull request may close these issues.

2 participants