Comments (4)
初级:升级标准:掌握基础数据结构和可调用性
any # 最简单类型注解
list # 常用内置容器类型,需要理解基础数据结构
dict # 常用内置映射类型,需要理解键值对映射关系
tuple # 不可变容器类型,理解不可变性
callable # 需要理解函数和可调用性
中级:升级标准:掌握函数参数和返回值注解的定义
optional # 理解可选参数的使用
parameter # 掌握参数注解的定义
return # 掌握返回值注解的定义
literal # 理解字面量类型的使用
union # 理解联合类型的使用
高级:升级标准:掌握类、函数和泛型的高级用法
decorator # 需要理解函数装饰器
class-var # 需要理解类和类属性
instance-var # 需要理解实例和实例属性
overload # 需要理解方法重载
protocol # 需要理解协议和抽象类型
recursive # 需要理解递归函数和数据类型
self # 需要理解实例方法中的self
typeguard # 需要实现类型保护
generic # 需要掌握泛型的定义和使用
generic-param # 需要掌握泛型参数的定义
generic-with-constraints # 需要掌握有约束的泛型
按照最小知识量提升原则让claude排布的,但是感觉高级里面还是太密了,请有工程实践经验的人再优化排布😊。
from python-type-challenges.
Several criteria I can think of:
- The simplicity of the reference solution
- The commonality of the pattern in development
- The popularity of the typing primitives used by the reference solution
from python-type-challenges.
我觉得可以加一个 extreme
类别,区分于 advanced。
- The commonality of the pattern in development
感觉 commonality 和 popularity 不是特别好判断
from python-type-challenges.
Closed. I think a formal criteria is probably unnecessary.
from python-type-challenges.
Related Issues (20)
- Errors in running "Challenge - concatenate" HOT 2
- Add `from typing import *` to boilerplate HOT 2
- Add newline in `typealias` challenge HOT 1
- Consider adding a hint message with links for each question HOT 5
- Allow custom challenge order HOT 4
- Record and show passed challenges
- The ellipsis in the function parameters of challenge intermediate/literalstring causes challenge failed HOT 3
- extreme-concatenate not working? (maybe outdated pyright) HOT 3
- much simpler solution to `extreme-self-casting` HOT 4
- [Bug] Pass challenges with `raise` HOT 6
- Too easy to pass `extreme-variance` HOT 5
- Enable UTF-8 mode for python (PEP 686) HOT 3
- [CI] Fail when pre-commit run
- [Web] 500 Internal Server Error HOT 3
- On mobile devices, click elsewhere on the screen should fold the challenge list
- [Web] Use HTMX to random page. HOT 3
- [Formatter] Replace `black` HOT 1
- [Bug] Old CodeMirrors are not remove HOT 1
- [Docs] Add random challenge entrance to README
- Return type for extreme concatenate HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-type-challenges.