@@ -120,7 +120,7 @@ def choosealicense_url(
120120 """
121121 A URL to the license on |choosealicense|.
122122
123- :type: Optional[ :class:`str`]
123+ :type: :class:`str` | None
124124 """
125125
126126 return self ._data ["url" ]
@@ -146,7 +146,7 @@ def description(
146146 """
147147 A description of the license.
148148
149- :type: Optional[ :class:`str`]
149+ :type: :class:`str` | None
150150 """
151151
152152 return self ._data ["description" ]
@@ -159,7 +159,7 @@ def implementation(
159159 """
160160 A guide to implementing the license.
161161
162- :type: Optional[ :class:`str`]
162+ :type: :class:`str` | None
163163 """
164164
165165 return self ._data ["implementation" ]
@@ -250,7 +250,7 @@ def nickname(
250250 """
251251 The human-readable nickname of the license.
252252
253- :type: Optional[ :class:`str`]
253+ :type: :class:`str` | None
254254 """
255255
256256 return self ._data ["nickname" ]
@@ -276,7 +276,7 @@ def spdx_id(
276276 """
277277 The ID of the license on |spdx|.
278278
279- :type: Optional[ :class:`str`]
279+ :type: :class:`str` | None
280280 """
281281
282282 return self ._data ["spdxId" ]
@@ -364,7 +364,7 @@ async def fetch_choosealicense_url(
364364 The :attr:`id` attribute is missing.
365365
366366
367- :rtype: Optional[ :class:`str`]
367+ :rtype: :class:`str` | None
368368 """
369369
370370 return await self ._fetch_field ("url" ) # type: ignore
@@ -414,7 +414,7 @@ async def fetch_description(
414414 The :attr:`id` attribute is missing.
415415
416416
417- :rtype: Optional[ :class:`str`]
417+ :rtype: :class:`str` | None
418418 """
419419
420420 return await self ._fetch_field ("description" ) # type: ignore
@@ -464,7 +464,7 @@ async def fetch_implementation(
464464 The :attr:`id` attribute is missing.
465465
466466
467- :rtype: Optional[ :class:`str`]
467+ :rtype: :class:`str` | None
468468 """
469469
470470 return await self ._fetch_field ("implementation" ) # type: ignore
@@ -639,7 +639,7 @@ async def fetch_nickname(
639639 The :attr:`id` attribute is missing.
640640
641641
642- :rtype: Optional[ :class:`str`]
642+ :rtype: :class:`str` | None
643643 """
644644
645645 return await self ._fetch_field ("nickname" ) # type: ignore
@@ -689,7 +689,7 @@ async def fetch_spdx_id(
689689 The :attr:`id` attribute is missing.
690690
691691
692- :rtype: Optional[ :class:`str`]
692+ :rtype: :class:`str` | None
693693 """
694694
695695 return await self ._fetch_field ("spdxId" ) # type: ignore
0 commit comments