File: prnt.py

package info (click to toggle)
python-easy-ansi 0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 488 kB
  • sloc: python: 3,109; sh: 127; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
# Because prnt is used by almost every module, I was getting circular import errors.
# So I moved this method to it's own module for all the other modules to pull from.


def prnt(text: str) -> None:
    """Convenience method to print without a newline."""
    print(text, end='', flush=True)