diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/forms/widgets.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/forms/widgets.py')
| -rw-r--r-- | django/forms/widgets.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 9b5ad1b2b9..5a25b66e9a 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -71,7 +71,8 @@ class MediaAsset: self.attributes = attributes def __eq__(self, other): - # Compare the path only, to ensure performant comparison in Media.merge. + # Compare the path only, to ensure performant comparison in + # Media.merge. return (self.__class__ is other.__class__ and self.path == other.path) or ( isinstance(other, str) and self._path == other ) @@ -161,8 +162,8 @@ class Media: ] def render_css(self): - # To keep rendering order consistent, we can't just iterate over items(). - # We need to sort the keys, and iterate over the sorted list. + # To keep rendering order consistent, we can't just iterate over + # items(). We need to sort the keys, and iterate over the sorted list. media = sorted(self._css) return chain.from_iterable( [ @@ -585,7 +586,8 @@ class ClearableFileInput(FileInput): # checks the "clear" checkbox), we return a unique marker # object that FileField will turn into a ValidationError. return FILE_INPUT_CONTRADICTION - # False signals to clear any existing value, as opposed to just None + # False signals to clear any existing value, as opposed to just + # None return False return upload |
