Closed rudymohammadbali closed 2 months ago
def ChangeDWMAccent(hWnd: int, attrib: int, state: int, color: str | None = None) -> None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
The | operator only supports python 3.10 and newer.
from typing import Union def ChangeDWMAccent(hWnd: int, attrib: int, state: int, color: Union[str, None] = None) -> None:
Error:
The | operator only supports python 3.10 and newer.
Fix: