Skip to content

Commit 3a7b115

Browse files
authored
fix: build-docs type error (supertokens#596)
- `pdoc3` prefers `Union` instead of `Optional` for `Callable`s
1 parent f197fc3 commit 3a7b115

File tree

1 file changed

+3
-2
lines changed
  • supertokens_python/recipe/webauthn/emaildelivery/services/smtp

1 file changed

+3
-2
lines changed

supertokens_python/recipe/webauthn/emaildelivery/services/smtp/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# License for the specific language governing permissions and limitations
1313
# under the License.
1414

15-
from typing import Any, Callable, Dict, Optional
15+
from typing import Any, Callable, Dict, Union
1616

1717
from supertokens_python.ingredients.emaildelivery.services.smtp import Transporter
1818
from supertokens_python.ingredients.emaildelivery.types import (
@@ -33,11 +33,12 @@ class SMTPService(EmailDeliveryInterface[TypeWebauthnEmailDeliveryInput]):
3333
def __init__(
3434
self,
3535
smtp_settings: SMTPSettings,
36-
override: Optional[
36+
override: Union[
3737
Callable[
3838
[SMTPServiceInterface[TypeWebauthnEmailDeliveryInput]],
3939
SMTPServiceInterface[TypeWebauthnEmailDeliveryInput],
4040
],
41+
None,
4142
] = None,
4243
) -> None:
4344
transporter = Transporter(smtp_settings)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy