Skip to content

style: fix ruff rule PLW1508#371

Merged
Thulium-Drake merged 1 commit intoansible-collections:mainfrom
PendaGTP:style/fix-ruff-rule-PLW1508
Mar 26, 2026
Merged

style: fix ruff rule PLW1508#371
Thulium-Drake merged 1 commit intoansible-collections:mainfrom
PendaGTP:style/fix-ruff-rule-PLW1508

Conversation

@PendaGTP
Copy link
Copy Markdown
Contributor

SUMMARY

Fixes the lint rule PLW1508 (2 errors):

plugins/connection/proxmox_pct_remote.py:697:81: [PLW1508]
  Invalid type for environment variable default; expected `str` or `None`
  ⋮ │ 
696 │             chan.get_pty(
697 │                 term=os.getenv("TERM", "vt100"), width=int(os.getenv("COLUMNS", 0)), height=int(os.getenv("LINES", 0))
    │                                                                                 ↑
698 │             )
  ⋮ │ 

plugins/connection/proxmox_pct_remote.py:697:116: [PLW1508]
  Invalid type for environment variable default; expected `str` or `None`
  ⋮ │ 
696 │             chan.get_pty(
697 │                 term=os.getenv("TERM", "vt100"), width=int(os.getenv("COLUMNS", 0)), height=int(os.getenv("LINES", 0))
    │                                                                                                                    ↑
698 │             )
  ⋮ │ 

@Thulium-Drake Thulium-Drake merged commit 1cdb8d5 into ansible-collections:main Mar 26, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants