Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/wcwidth/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2Wcwidth module.
4https://github.com/jquast/wcwidth
5"""
6# re-export all functions & definitions, even private ones, from top-level
7# module path, to allow for 'from wcwidth import _private_func'. Of course,
8# user beware that any _private functions or variables not exported by __all__
9# may disappear or change signature at any future version.
11# local
12from .wcwidth import ZERO_WIDTH # noqa
13from .wcwidth import (WIDE_EASTASIAN,
14 AMBIGUOUS_EASTASIAN,
15 VS16_NARROW_TO_WIDE,
16 clip,
17 ljust,
18 rjust,
19 width,
20 center,
21 wcwidth,
22 wcswidth,
23 list_versions,
24 iter_sequences,
25 strip_sequences,
26 _wcmatch_version,
27 _wcversion_value)
28from .bisearch import bisearch as _bisearch
29from .grapheme import grapheme_boundary_before # noqa
30from .grapheme import iter_graphemes, iter_graphemes_reverse
31from .textwrap import SequenceTextWrapper, wrap
32from .sgr_state import propagate_sgr
34# The __all__ attribute defines the items exported from statement,
35# 'from wcwidth import *', but also to say, "This is the public API".
36__all__ = ('wcwidth', 'wcswidth', 'width', 'iter_sequences', 'iter_graphemes',
37 'iter_graphemes_reverse', 'grapheme_boundary_before',
38 'ljust', 'rjust', 'center', 'wrap', 'clip', 'strip_sequences',
39 'list_versions', 'propagate_sgr')
41# Using 'hatchling', it does not seem to provide the pyproject.toml nicety, "dynamic = ['version']"
42# like flit_core, maybe there is some better way but for now we have to duplicate it in both places
43__version__ = '0.6.0'