diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b0c2acb..ef201815 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,18 +17,18 @@ repos: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.263 + rev: v0.0.270 hooks: - id: ruff args: ["--fix"] - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.12.2 + rev: v0.13 hooks: - id: validate-pyproject - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.3.0 hooks: - id: mypy exclude: tests|examples diff --git a/src/superqt/fonticon/_qfont_icon.py b/src/superqt/fonticon/_qfont_icon.py index 5ea96cf0..4240876c 100644 --- a/src/superqt/fonticon/_qfont_icon.py +++ b/src/superqt/fonticon/_qfont_icon.py @@ -1,7 +1,7 @@ from __future__ import annotations import warnings -from collections import abc +from collections import abc, defaultdict from dataclasses import dataclass from pathlib import Path from typing import DefaultDict, Sequence, Tuple, Union, cast @@ -157,7 +157,7 @@ class _QFontIconEngine(QIconEngine): def __init__(self, options: _IconOptions): super().__init__() - self._opts: DefaultDict[ + self._opts: defaultdict[ QIcon.State, dict[QIcon.Mode, _IconOptions | None] ] = DefaultDict(dict) self._opts[QIcon.State.Off][QIcon.Mode.Normal] = options