
from ..filters import *
from ..widgets import BooleanWidget


class BooleanFilter(BooleanFilter):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('widget', BooleanWidget)

        super().__init__(*args, **kwargs)


from ..filters import BooleanFilter as _BooleanFilter
from ..filters import *
from ..widgets import BooleanWidget


class BooleanFilter(_BooleanFilter):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('widget', BooleanWidget)

        super().__init__(*args, **kwargs)

Fix mypy error: circular inheritance
Fix mypy error: circular inheritance

Closes #832, #833

  
+ from ..filters import BooleanFilter as _BooleanFilter
  from ..filters import *
  from ..widgets import BooleanWidget
  
  
- class BooleanFilter(BooleanFilter):
+ class BooleanFilter(_BooleanFilter):
      def __init__(self, *args, **kwargs):
          kwargs.setdefault('widget', BooleanWidget)
  
          super().__init__(*args, **kwargs)
  
Fix mypy error: circular inheritance
## Code Before:

from ..filters import *
from ..widgets import BooleanWidget


class BooleanFilter(BooleanFilter):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('widget', BooleanWidget)

        super().__init__(*args, **kwargs)

## Instruction:
Fix mypy error: circular inheritance
## Code After:

from ..filters import BooleanFilter as _BooleanFilter
from ..filters import *
from ..widgets import BooleanWidget


class BooleanFilter(_BooleanFilter):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('widget', BooleanWidget)

        super().__init__(*args, **kwargs)
