I have a function that returns a subclass of type[A], however my linter warns me that B and C are not of type \'type[A]\':