Skip to content

Commit

Permalink
Fix nested-classes-whitelist default value (#1093) (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1kolasM authored and sobolevn committed Dec 27, 2019
1 parent f39e878 commit 02e423c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,7 @@ We used to have incremental versioning before `0.1.0`.

- Fixes supported python versions in PyPI to be `3.6` and `3.7`
- Fix false positive ImplicitYieldFromViolation for async functions #1057
- Fixes nested-classes-whitelist option default value for flake8 prior 3.7.8 #1093

### Misc

Expand Down
4 changes: 2 additions & 2 deletions wemake_python_styleguide/options/config.py
Expand Up @@ -129,15 +129,15 @@
"""

from typing import ClassVar, FrozenSet, Mapping, Optional, Sequence, Union
from typing import ClassVar, Mapping, Optional, Sequence, Union

import attr
from flake8.options.manager import OptionManager
from typing_extensions import final

from wemake_python_styleguide.options import defaults

ConfigValuesTypes = Union[str, int, bool, FrozenSet[str]]
ConfigValuesTypes = Union[str, int, bool, Sequence[str]]


@final
Expand Down
4 changes: 2 additions & 2 deletions wemake_python_styleguide/options/defaults.py
Expand Up @@ -33,10 +33,10 @@
MAX_NOQA_COMMENTS: Final = 10 # guessed

#: List of nested classes' names we allow to use.
NESTED_CLASSES_WHITELIST: Final = frozenset((
NESTED_CLASSES_WHITELIST: Final = (
'Meta', # django forms, models, drf, etc
'Params', # factoryboy specific
))
)


# ===========
Expand Down

0 comments on commit 02e423c

Please sign in to comment.