Skip to content

Commit

Permalink
chore: improve type checking
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed May 16, 2024
1 parent 2a93b32 commit 6e7c704
Show file tree
Hide file tree
Showing 15 changed files with 167 additions and 107 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Python package

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install uv
- run: uv run basedpyright --with .[typecheck]
2 changes: 2 additions & 0 deletions dargs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from .dargs import Argument, ArgumentEncoder, Variant

__all__ = ["Argument", "Variant", "ArgumentEncoder"]
Loading

0 comments on commit 6e7c704

Please sign in to comment.