Skip to content

Commit

Permalink
fix pylance warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrude committed May 16, 2023
1 parent 96f9c5f commit 723741c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/oobabot/sd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def __init__(
):
super().__init__(self.SERVICE_NAME, base_url)

print("request_params", request_params)
self.request_params = request_params

# when we're in a "age restricted" channel, we'll swap
Expand Down Expand Up @@ -237,5 +236,5 @@ async def _setup(self):
await self.set_options()
fancy_logger.get().debug(
"Stable Diffusion: Using negative prompt: %s...",
self.request_params.get("negative_prompt")[:20],
str(self.request_params.get("negative_prompt", ""))[:20],
)
5 changes: 1 addition & 4 deletions src/oobabot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ def __init__(self):
deprecated_group = self.add_argument_group(
title=self.DEPRECATED,
description="These settings are deprecated and will be removed in a "
+ "future release. Please move to using the config.yml file to set "
+ "them instead.",
+ "future release. Please set them with config.yml instead.",
)
deprecated_group.add_argument(
"--diffusion-steps",
Expand Down Expand Up @@ -376,8 +375,6 @@ def __init__(self):

def load(self, args) -> None:
self._settings = self.parse_args(args=args).__dict__
for key in self._settings:
setattr(self, key, self._settings[key])

if not self.get_str("discord_token"):
self.discord_token = self.DISCORD_TOKEN_ENV
Expand Down

0 comments on commit 723741c

Please sign in to comment.