Skip to content

Commit

Permalink
Merge pull request #2997 from mkdocs/plugconf
Browse files Browse the repository at this point in the history
Refactor plugin-related config options and error reporting
  • Loading branch information
oprypin committed Oct 12, 2022
2 parents b2083d0 + aaf819f commit 568e63e
Show file tree
Hide file tree
Showing 6 changed files with 451 additions and 316 deletions.
4 changes: 2 additions & 2 deletions mkdocs/config/base.py
Expand Up @@ -51,7 +51,7 @@ def default(self):
def default(self, value):
self._default = value

def validate(self, value) -> T:
def validate(self, value: object) -> T:
return self.run_validation(value)

def reset_warnings(self) -> None:
Expand All @@ -64,7 +64,7 @@ def pre_validation(self, config: Config, key_name: str) -> None:
The pre-validation process method should be implemented by subclasses.
"""

def run_validation(self, value):
def run_validation(self, value: object):
"""
Perform validation for a value.
Expand Down

0 comments on commit 568e63e

Please sign in to comment.