Syed Ansab Waqar Gillani
Ansab is a seasoned data scientist and AI engineer with extensive experience in building robust AI models and solving complex data challenges in his Software Engineering career. Passionate about technology and data-driven innovation, has worked on diverse projects that emphasize quality, scalability, and adaptability in software systems. Through his work, he aims to empower teams to develop smarter, more inclusive data-driven solutions.
Session
Decorators are a powerful way to extend functions, but their flexibility can lead to ambiguity and runtime errors. By using type annotations, we can clarify their behavior and leverage mypy and pyright to catch mistakes early.
This talk explores typing.ParamSpec, TypeVarTuple, Protocol, Concatenate, and other tools to create type-safe decorators that preserve function signatures. You'll learn best practices to improve readability, reduce debugging time, and write more maintainable Python code.