Add typehint
Update bug_is_readonly to take a bug object