Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PyMySQL/PyMySQL
/ Custom
Class
Custom
pymysql/tests/test_connection.py:933–934 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
931
con = self.connect()
932
933
class
Custom(str):
934
pass
935
936
mapping = {str: pymysql.converters.escape_string}
937
self.assertEqual(con.escape(Custom(
"foobar"
), mapping),
"'foobar'"
)
Callers
1
test_escape_fallback_encoder
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_escape_fallback_encoder
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…