File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import mimetypes
22from typing import IO
3- from typing import List
43from typing import Optional
54from typing import Union
65
@@ -93,7 +92,7 @@ def django_url_fetcher(url: str):
9392
9493
9594def render_pdf (
96- template : Union [List [str ], str ],
95+ template : Union [list [str ], str ],
9796 file_ : IO ,
9897 url_fetcher = django_url_fetcher ,
9998 context : Optional [dict ] = None ,
Original file line number Diff line number Diff line change 1- from typing import List
21from typing import Optional
32
43from django .core .exceptions import ImproperlyConfigured
@@ -103,7 +102,7 @@ def get_download_name(self) -> str:
103102 )
104103 return self .download_name
105104
106- def get_template_names (self ) -> List [str ]:
105+ def get_template_names (self ) -> list [str ]:
107106 """Return a list of template names to be used for the request.
108107
109108 Must return a list. By default, just returns ``[self.template_name]``.
You can’t perform that action at this time.
0 commit comments