Skip to content

Commit

Permalink
Fix nested-classes-whitelist default value (wemake-services#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1kolasM committed Dec 27, 2019
1 parent f39e878 commit f2201f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion wemake_python_styleguide/options/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
MAX_NOQA_COMMENTS: Final = 10 # guessed

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

0 comments on commit f2201f8

Please sign in to comment.