class_docstr: Redact secrets from logs.
class_docstr_tok: ["Redact","secrets","from","logs","."]
code: def __init__(self):
      super().__init__()
      self.patterns = set()
  
imports: from __future__ import annotations
  import collections.abc
  import logging
  import sys
  from enum import Enum
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Callable, Dict, Generator, Iterable, Iterator, List, Pattern, TextIO, Tuple, TypeVar, Union
  import re2
  from airflow import settings
  from airflow.compat.functools import cache
label_desc: Use image node_id 1 to create a new SecretsMasker object from inherited base classes: logging with example: obj = SecretsMasker()