MCPcopy Index your code
hub / github.com/ipython/ipython / _get_flag_lookup

Function _get_flag_lookup

IPython/testing/plugin/pytest_ipdoctest.py:462–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460
461
462def _get_flag_lookup() -> Dict[str, int]:
463 import doctest
464
465 return dict(
466 DONT_ACCEPT_TRUE_FOR_1=doctest.DONT_ACCEPT_TRUE_FOR_1,
467 DONT_ACCEPT_BLANKLINE=doctest.DONT_ACCEPT_BLANKLINE,
468 NORMALIZE_WHITESPACE=doctest.NORMALIZE_WHITESPACE,
469 ELLIPSIS=doctest.ELLIPSIS,
470 IGNORE_EXCEPTION_DETAIL=doctest.IGNORE_EXCEPTION_DETAIL,
471 COMPARISON_FLAGS=doctest.COMPARISON_FLAGS,
472 ALLOW_UNICODE=_get_allow_unicode_flag(),
473 ALLOW_BYTES=_get_allow_bytes_flag(),
474 NUMBER=_get_number_flag(),
475 )
476
477
478def get_optionflags(parent: "IPDoctestModule") -> int:

Callers 1

get_optionflagsFunction · 0.85

Calls 3

_get_allow_unicode_flagFunction · 0.85
_get_allow_bytes_flagFunction · 0.85
_get_number_flagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…