Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Annotations: ext.smtp #725

Closed
derks opened this issue Jun 22, 2024 · 0 comments
Closed

Type Annotations: ext.smtp #725

derks opened this issue Jun 22, 2024 · 0 comments
Assignees
Milestone

Comments

@derks
Copy link
Member

derks commented Jun 22, 2024

Add initial type annotations.

Related:

Current Errors:

|> cement-py312 <| src # make comply-typing | grep ext/ext_smtp
cement/ext/ext_smtp.py:17: error: Call to untyped function "minimal_logger" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:55: error: Function is missing a type annotation  [no-untyped-def]
cement/ext/ext_smtp.py:61: error: Item "None" of "Optional[Any]" has no attribute "config"  [union-attr]
cement/ext/ext_smtp.py:61: error: "Meta" has no attribute "config_section"  [attr-defined]
cement/ext/ext_smtp.py:68: error: Item "None" of "Optional[Any]" has no attribute "config"  [union-attr]
cement/ext/ext_smtp.py:68: error: "Meta" has no attribute "config_section"  [attr-defined]
cement/ext/ext_smtp.py:73: error: Function is missing a type annotation  [no-untyped-def]
cement/ext/ext_smtp.py:116: error: Call to untyped function "_get_params" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:118: error: Call to untyped function "is_true" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:121: error: "Meta" has no attribute "label"  [attr-defined]
cement/ext/ext_smtp.py:124: error: Incompatible types in assignment (expression has type "SMTP", variable has type "SMTP_SSL")  [assignment]
cement/ext/ext_smtp.py:126: error: "Meta" has no attribute "label"  [attr-defined]
cement/ext/ext_smtp.py:128: error: Item "None" of "Optional[Any]" has no attribute "debug"  [union-attr]
cement/ext/ext_smtp.py:131: error: Call to untyped function "is_true" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:132: error: "Meta" has no attribute "label"  [attr-defined]
cement/ext/ext_smtp.py:135: error: Call to untyped function "is_true" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:138: error: Call to untyped function "_send_message" in typed context  [no-untyped-call]
cement/ext/ext_smtp.py:141: error: Function is missing a type annotation  [no-untyped-def]
cement/ext/ext_smtp.py:218: error: Function is missing a type annotation  [no-untyped-def]
make: *** [Makefile:33: comply-typing] Error 1
@derks derks added this to the 3.0.12 Stable milestone Jun 22, 2024
derks added a commit that referenced this issue Jul 18, 2024
    - Resolves Issue #725
    - Related to PR #628
@derks derks self-assigned this Jul 18, 2024
@derks derks closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant