aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-11-30 08:30:02 -0800
committerCopybara-Service <copybara-worker@google.com>2022-11-30 08:30:38 -0800
commitc4ab3bf1a95ce0ffa550984fc1cdfe9ccd777ed4 (patch)
treebc8a628b912c9551b96e4bbed7aec8c0a3c1cd28
parent6c83adcf2c35d1e41dee63c3199189b546731b6d (diff)
downloadabsl-py-c4ab3bf1a95ce0ffa550984fc1cdfe9ccd777ed4.tar.gz
Add a pytype disable for a type error.
PiperOrigin-RevId: 491925237 Change-Id: I294f9993b4f1944e1d28ba54a5b14ae910b2714f
-rw-r--r--absl/testing/absltest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/testing/absltest.py b/absl/testing/absltest.py
index 9071f8f..e14cfcb 100644
--- a/absl/testing/absltest.py
+++ b/absl/testing/absltest.py
@@ -525,7 +525,7 @@ class _TempFile(object):
'file in binary mode'.format(mode))
if 'b' not in mode:
mode += 'b'
- cm = self._open(mode, encoding=None, errors=None)
+ cm = self._open(mode, encoding=None, errors=None) # pytype: disable=wrong-arg-types
return cm
# TODO(b/123775699): Once pytype supports typing.Literal, use overload and