def reader(entry: Any=Depends(entry)):
    'Specify a path parameter and use it to look up a reader.'
    if (not isinstance(entry, DuckReader)):
        raise HTTPException(status_code=404, detail='This is not a Reader.')
    return entry
Specify a path parameter and use it to look up a reader.
def reader(entry: Any=Depends(entry)):
    
    if (not isinstance(entry, DuckReader)):
        raise HTTPException(status_code=404, detail='This is not a Reader.')
    return entry