In order for your IDE to see get_or_none method, You should add type annotation to objects variable in your BaseModel class like so:
get_or_none
objects
BaseModel
objects: BaseManager = BaseManager()