Skip to content

Conversation

@JedMeister
Copy link
Member

@JedMeister JedMeister commented Oct 28, 2025

This PR is primarily to fix a few of bugs:

  • A weird one that seems like a python bug to me: type 'Plan' | set[str] failing, but Union['Plan', set[str]] works fine...
  • A silly bug that I'm not sure why I haven't hit before; Deb822 comes from debian.deb822, not debian.debfile
  • (re)add support for ! prefix in removelists - to keep (actually recreate) a subdir of a removed dir. I hit this building a trixie bootstrap - it failed because it didn't understand/expect the ! prefix in a removelist. It seems like it may have been a regression introduced in Scripts and removelist #32. We haven't noticed it before now as it looks like bootstrap/removelist is the only place that it's used?

I also:

  • fixed linting and typing in fab, fablib/installer.py, fablib/plan.py & fablib/removelist.py
  • migrated from setup.py to pyproject.toml
  • added fablib/py.typed - so mypy knows fab is typed

@JedMeister JedMeister requested a review from OnGle October 28, 2025 06:20
@JedMeister JedMeister changed the title Bugfix typing Bugfixes - weird typing bug; plus others Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant