Closed Jaymon closed 6 years ago
@param(0, default=None, type=Foo.query.get_pk)
The above snippet should work but @sqpierce reported that it doesn't, we should look into this and figure out why it isn't doing what was expected
when testing this, also try:
@param(0, default=None, type=lambda x: Foo.query.get_pk(x))
And see if that works. I'm thinking it might be a thing with running tests
The above snippet should work but @sqpierce reported that it doesn't, we should look into this and figure out why it isn't doing what was expected