Silenced param warnings about class attributes using context manager