From 206499f52898d99d6834ac6b5f053bb912699c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Mon, 22 Nov 2021 19:12:49 +0100 Subject: [PATCH] BUG: hotfix for a functional breakage introduced in #3546 --- yt/visualization/plot_modifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt/visualization/plot_modifications.py b/yt/visualization/plot_modifications.py index 5ece51d6e8c..b993b3d0649 100644 --- a/yt/visualization/plot_modifications.py +++ b/yt/visualization/plot_modifications.py @@ -2,7 +2,7 @@ import warnings from functools import wraps from numbers import Number -from typing import Tuple +from typing import Optional, Tuple import matplotlib import numpy as np @@ -55,7 +55,7 @@ class PlotCallback: # "figure" this is disregarded. If "force" is included in the tuple, it # will *not* check whether or not the coord_system is in axis or figure, # and will only look at the geometries. - _supported_geometries: Tuple[str, ...] + _supported_geometries: Optional[Tuple[str, ...]] = None def __init_subclass__(cls, *args, **kwargs): super().__init_subclass__(*args, **kwargs)