Skip to content

Commit 136da49

Browse files
committed
Silence mypy error regarding undefined attribute os.getuid() happening on windows
Change-Id: I091c22acd09a17f46302b55bc0e94ad992fc4a86
1 parent f798837 commit 136da49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql/connector/plugins/authentication_kerberos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_store() -> dict:
101101
"""
102102
krb5ccname = os.environ.get(
103103
"KRB5CCNAME",
104-
f"/tmp/krb5cc_{os.getuid()}"
104+
f"/tmp/krb5cc_{os.getuid()}" # type: ignore[attr-defined]
105105
if os.name == "posix"
106106
else Path("%TEMP%").joinpath("krb5cc"),
107107
)

0 commit comments

Comments
 (0)