When writing code I have encountered my linter expressing the type of ~<type> (where <type> is a type not <type> literary). An example of this is self.
class A:
def foo(self):
reveal_type(self) # reveals "~A"
I assume this means "A or a subclass of A"; however, I was unable to find any information about it online.
Also, you can't use this syntax in code:
a: ~A # raises an exception: TypeError: bad operand type for unary ~: 'type'
If a would have been revealed it would be Unknown.