MCPcopy Index your code
hub / github.com/dbcli/mycli / resolve_casing

Method resolve_casing

mycli/sqlcompleter.py:1344–1351  ·  view source on GitHub ↗
(
        self,
        casing: str | None,
        last: str,
    )

Source from the content-addressed store, hash-verified

1342 return completions
1343
1344 def resolve_casing(
1345 self,
1346 casing: str | None,
1347 last: str,
1348 ) -> str | None:
1349 if casing != 'auto':
1350 return casing
1351 return 'lower' if last and (last[0].islower() or last[-1].islower()) else 'upper'
1352
1353 def apply_casing(
1354 self,

Callers 2

find_matchesMethod · 0.95
test_resolve_casingFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_resolve_casingFunction · 0.76