This prevents code like `logging.StreamHandler().stream.close()` from being type checked as valid https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler This problem was introduced in https://github.com/python/typeshed/pull/5069/files#diff-23ef9e6197f6f95428d7333190fc2357c1c4f110b89c27a7fc71e2fab7d7897aR702