mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-03 07:42:15 -08:00
Fix up string formatting/concatenation to f-strings where feasible
This commit is contained in:
parent
8fb16ceb28
commit
3ba6c3c83c
34 changed files with 121 additions and 101 deletions
|
|
@ -198,7 +198,7 @@ class TorchHijack:
|
|||
if hasattr(torch, item):
|
||||
return getattr(torch, item)
|
||||
|
||||
raise AttributeError("'{}' object has no attribute '{}'".format(type(self).__name__, item))
|
||||
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{item}'")
|
||||
|
||||
def randn_like(self, x):
|
||||
if self.sampler_noises:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue