Skip to content

Commit

Permalink
全局配置添加类型约束
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 5, 2024
1 parent 8e61935 commit e27997a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/configs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from typing import Literal, get_args

font_version = '2024.05.12'

font_formats = ['otf', 'woff2', 'ttf', 'bdf', 'pcf']
type FontFormat = Literal['otf', 'woff2', 'ttf', 'bdf', 'pcf']
font_formats = list[FontFormat](get_args(FontFormat.__value__))

0 comments on commit e27997a

Please sign in to comment.