Skip to content

Commit 8758c03

Browse files
committed
Missing types
1 parent ba04781 commit 8758c03

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

cloudflare_images/field.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
such as variants in Cloudflare Images
44
"""
55

6+
from typing import Any, Dict, List, Tuple
67
from django import forms
78
from django.db.models import CharField
89
from django.db.models.fields.files import (
@@ -59,7 +60,7 @@ def __init__(
5960
self.variant = variant or Config().variant
6061
super().__init__(verbose_name, name, width_field, height_field, **kwargs)
6162

62-
def deconstruct(self):
63+
def deconstruct(self) -> Tuple[str, str, List[Any], Dict[str, Any]]:
6364
"""
6465
Returns the deconstructed version of our field.
6566
Same as ImageField with variant on top

cloudflare_images/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CloudflareImagesService:
2121
API client for Cloudflare Images
2222
"""
2323

24-
def __init__(self):
24+
def __init__(self) -> None:
2525
"""
2626
Loads the configuration
2727
"""

cloudflare_images/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CloudflareImagesStorage(Storage):
1717
Django storage for Cloudflare Images
1818
"""
1919

20-
def __init__(self):
20+
def __init__(self) -> None:
2121
"""
2222
Setups the storage
2323
"""

0 commit comments

Comments
 (0)