Skip to content

Improve code quality: fix type check bug and add type hints#89

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/repository-code-quality-380f
Draft

Improve code quality: fix type check bug and add type hints#89
cursor[bot] wants to merge 1 commit intomainfrom
cursor/repository-code-quality-380f

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented Mar 19, 2026

  • Fix incorrect type check in linkedin.py: replace 'type(len(resumes)) != int' with 'len(resumes) == 0' (len() always returns int, so the original check would never evaluate to true)
  • Add return type hints to utility functions (prRed, prGreen, prYellow, writeResults, printInfoMes)
  • Add return type hint to chromeBrowserOptions function
  • Improve code formatting for PEP 8 compliance in jobsToPages and writeResults functions
Open in Web View Automation 

- Fix incorrect type check in linkedin.py line 312: replace 'type(len(resumes)) != int' with 'len(resumes) == 0' (len() always returns int)
- Add return type hints to utility functions in utils.py (prRed, prGreen, prYellow, writeResults, printInfoMes)
- Add return type hint to chromeBrowserOptions function
- Import Options from selenium.webdriver.chrome.options for proper type annotation
- Fix code formatting and spacing for PEP 8 compliance in jobsToPages and writeResults functions

Co-authored-by: Ongun Demirag <ongun@ongundemirag.com>
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.

1 participant