Skip to content

Commit

Permalink
🎨 Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Jan 29, 2024
1 parent 67edcd8 commit c537ce6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zgw_consumers/api_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
These are NOT django models.
"""

import uuid
from dataclasses import Field, fields
from datetime import date, datetime
Expand Down Expand Up @@ -102,13 +103,11 @@ def get_model_fields(model: Union[type, Model]) -> Dict[str, Field]:


@overload
def factory(model: Type[M], data: JSONObject) -> M:
...
def factory(model: Type[M], data: JSONObject) -> M: ...


@overload
def factory(model: Type[M], data: List[JSONObject]) -> List[M]:
...
def factory(model: Type[M], data: List[JSONObject]) -> List[M]: ...


def factory(
Expand Down
1 change: 1 addition & 0 deletions zgw_consumers/cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Replace the OAS schema cache with django's cache mechanism.
"""

from django.core.cache import caches

from zds_client.oas import schema_fetcher
Expand Down
1 change: 1 addition & 0 deletions zgw_consumers/concurrent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrap around concurrent.futures to add Django-specific cleanup behaviour.
"""

import functools
import logging
import threading
Expand Down
1 change: 1 addition & 0 deletions zgw_consumers/drf/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Currently the support is experimental.
"""

import copy
from collections import OrderedDict
from datetime import date, datetime, time
Expand Down
1 change: 1 addition & 0 deletions zgw_consumers/legacy/nlx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Rewrite the URLs in anything that looks like a string, dict or list.
"""

from typing import Any, List, Optional, Union

from zds_client.client import Object
Expand Down

0 comments on commit c537ce6

Please sign in to comment.