Skip to content

Python Shift Library

Latest

Choose a tag to compare

@point85 point85 released this 15 Feb 01:20
· 1 commit to master since this release
  • Claude Sonnet 4.5
    Critical Bugs Fixed:
    Parameter Shadowing Bug in team.py:159: Fixed toTimeOfDay parameter being reassigned, which caused variable shadowing
    Bare Exception Handling: Replaced bare except: clauses with proper Exception handling in team.py:245 and team_member.py
    Performance Optimizations:
    String Concatenation: Replaced inefficient string concatenation in loops with list comprehension + join() in:
    Comparison Operators: Simplified comparison operators in named.py using @functools.total_ordering decorator, reducing code duplication
    Code Quality Improvements:
    Import Statements: Converted all absolute imports (from PyShift.workschedule.) to relative imports (from .) in all 13 Python files for better package portability
    Fixed bare [] type hints to proper List[Type] annotations
    Added Optional[Type] for nullable fields
    Improved return type hints throughout
    F-strings: Modernized string formatting using f-strings instead of % formatting for better readability and performance