fix: typo

This commit is contained in:
张泊明518370910136 2022-05-27 12:28:33 +08:00
parent 934343ea7e
commit 0e8c99b1d2
No known key found for this signature in database
GPG Key ID: FBEF5DE8B9F4C629
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ source env/Scripts/activate # each time when you need this venv
```bash ```bash
pip3 install -e . pip3 install -e .
cp .env.exmaple .env && vi .env # configure environment cp .env.example .env && vi .env # configure environment
joint-teapot --help joint-teapot --help
``` ```

View File

@ -16,7 +16,7 @@ def for_all_methods(
) -> Callable[[_T], _T]: ) -> Callable[[_T], _T]:
@functools.wraps(decorator) @functools.wraps(decorator)
def decorate(cls: Any) -> Any: def decorate(cls: Any) -> Any:
for attr in cls.__dict__: # there's propably a better way to do this for attr in cls.__dict__: # there's probably a better way to do this
if callable(getattr(cls, attr)): if callable(getattr(cls, attr)):
setattr(cls, attr, decorator(getattr(cls, attr))) setattr(cls, attr, decorator(getattr(cls, attr)))
return cls return cls

View File

@ -79,7 +79,7 @@ class Mattermost:
logger.info(f"Added member {member} to channel {group_name}") logger.info(f"Added member {member} to channel {group_name}")
def create_webhooks_for_repos(self, repos: List[str], gitea: Gitea) -> None: def create_webhooks_for_repos(self, repos: List[str], gitea: Gitea) -> None:
# one group corresponds to one repo so these concepts can be used interchangably # one group corresponds to one repo so these concepts can be used interchangeably
for repo in repos: for repo in repos:
logger.info(f"Creating webhooks for repo {gitea.org_name}/{repo}") logger.info(f"Creating webhooks for repo {gitea.org_name}/{repo}")
try: try: