Skip to content

Importing tach.extensions affects signal handling.Β #730

@martinuncountable

Description

@martinuncountable

Here's is an example, I have this script:

import time

# from tach.extension import DependentMap, Direction, ProjectConfig


def main() -> None:
    while True:
        time.sleep(0.2)


if __name__ == "__main__":
    main()

If use ctrl+c. I get this:

Traceback (most recent call last):
  File "/Users/martin/main/test.py", line 15, in <module>
    main()
  File "/Users/martin/main/test.py", line 11, in main
    time.sleep(0.2)
KeyboardInterrupt

Adding the line from tach.extension import DependentMap, Direction, ProjectConfig

ctrl+c does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions