py2docfx 0.1.9.dev1927679__py3-none-any.whl → 0.1.9.dev1929293__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. py2docfx/__main__.py +18 -2
  2. py2docfx/convert_prepare/git.py +8 -5
  3. py2docfx/docfx_yaml/logger.py +13 -0
  4. py2docfx/venv/venv1/Lib/site-packages/cryptography/__about__.py +1 -1
  5. py2docfx/venv/venv1/Lib/site-packages/cryptography/__init__.py +13 -0
  6. py2docfx/venv/venv1/Lib/site-packages/cryptography/fernet.py +8 -0
  7. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/_oid.py +2 -0
  8. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/backends/openssl/backend.py +8 -14
  9. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py +10 -7
  10. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/ciphers/algorithms.py +12 -6
  11. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/argon2.py +13 -0
  12. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/kdf/scrypt.py +3 -64
  13. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/padding.py +3 -24
  14. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/serialization/pkcs7.py +33 -0
  15. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/twofactor/hotp.py +9 -1
  16. py2docfx/venv/venv1/Lib/site-packages/cryptography/hazmat/primitives/twofactor/totp.py +5 -0
  17. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/__init__.py +8 -0
  18. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/base.py +4 -415
  19. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/certificate_transparency.py +1 -63
  20. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/extensions.py +286 -5
  21. py2docfx/venv/venv1/Lib/site-packages/cryptography/x509/ocsp.py +4 -338
  22. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/__init__.py +1 -1
  23. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any.py +39 -0
  24. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/any_pb2.py +3 -3
  25. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/api_pb2.py +3 -3
  26. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/compiler/plugin_pb2.py +3 -3
  27. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/descriptor_pb2.py +108 -108
  28. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration.py +100 -0
  29. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/duration_pb2.py +3 -3
  30. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/empty_pb2.py +3 -3
  31. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/field_mask_pb2.py +3 -3
  32. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/python_message.py +7 -4
  33. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/internal/well_known_types.py +1 -1
  34. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/pyext/cpp_message.py +1 -1
  35. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/runtime_version.py +16 -9
  36. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/service.py +4 -4
  37. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/source_context_pb2.py +3 -3
  38. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/struct_pb2.py +3 -3
  39. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/text_format.py +1 -1
  40. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp.py +112 -0
  41. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/timestamp_pb2.py +3 -3
  42. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/type_pb2.py +3 -3
  43. py2docfx/venv/venv1/Lib/site-packages/google/protobuf/wrappers_pb2.py +3 -3
  44. py2docfx/venv/venv1/Lib/site-packages/jwt/__init__.py +1 -1
  45. py2docfx/venv/venv1/Lib/site-packages/jwt/api_jwt.py +3 -3
  46. {py2docfx-0.1.9.dev1927679.dist-info → py2docfx-0.1.9.dev1929293.dist-info}/METADATA +1 -1
  47. {py2docfx-0.1.9.dev1927679.dist-info → py2docfx-0.1.9.dev1929293.dist-info}/RECORD +49 -45
  48. {py2docfx-0.1.9.dev1927679.dist-info → py2docfx-0.1.9.dev1929293.dist-info}/WHEEL +0 -0
  49. {py2docfx-0.1.9.dev1927679.dist-info → py2docfx-0.1.9.dev1929293.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,100 @@
1
+ # Protocol Buffers - Google's data interchange format
2
+ # Copyright 2008 Google Inc. All rights reserved.
3
+ #
4
+ # Use of this source code is governed by a BSD-style
5
+ # license that can be found in the LICENSE file or at
6
+ # https://developers.google.com/open-source/licenses/bsd
7
+
8
+ """Contains the Duration helper APIs."""
9
+
10
+ import datetime
11
+
12
+ from google.protobuf.duration_pb2 import Duration
13
+
14
+
15
+ def from_json_string(value: str) -> Duration:
16
+ """Converts a string to Duration.
17
+
18
+ Args:
19
+ value: A string to be converted. The string must end with 's'. Any
20
+ fractional digits (or none) are accepted as long as they fit into
21
+ precision. For example: "1s", "1.01s", "1.0000001s", "-3.100s"
22
+
23
+ Raises:
24
+ ValueError: On parsing problems.
25
+ """
26
+ duration = Duration()
27
+ duration.FromJsonString(value)
28
+ return duration
29
+
30
+
31
+ def from_microseconds(micros: float) -> Duration:
32
+ """Converts microseconds to Duration."""
33
+ duration = Duration()
34
+ duration.FromMicroseconds(micros)
35
+ return duration
36
+
37
+
38
+ def from_milliseconds(millis: float) -> Duration:
39
+ """Converts milliseconds to Duration."""
40
+ duration = Duration()
41
+ duration.FromMilliseconds(millis)
42
+ return duration
43
+
44
+
45
+ def from_nanoseconds(nanos: float) -> Duration:
46
+ """Converts nanoseconds to Duration."""
47
+ duration = Duration()
48
+ duration.FromNanoseconds(nanos)
49
+ return duration
50
+
51
+
52
+ def from_seconds(seconds: float) -> Duration:
53
+ """Converts seconds to Duration."""
54
+ duration = Duration()
55
+ duration.FromSeconds(seconds)
56
+ return duration
57
+
58
+
59
+ def from_timedelta(td: datetime.timedelta) -> Duration:
60
+ """Converts timedelta to Duration."""
61
+ duration = Duration()
62
+ duration.FromTimedelta(td)
63
+ return duration
64
+
65
+
66
+ def to_json_string(duration: Duration) -> str:
67
+ """Converts Duration to string format.
68
+
69
+ Returns:
70
+ A string converted from self. The string format will contains
71
+ 3, 6, or 9 fractional digits depending on the precision required to
72
+ represent the exact Duration value. For example: "1s", "1.010s",
73
+ "1.000000100s", "-3.100s"
74
+ """
75
+ return duration.ToJsonString()
76
+
77
+
78
+ def to_microseconds(duration: Duration) -> int:
79
+ """Converts a Duration to microseconds."""
80
+ return duration.ToMicroseconds()
81
+
82
+
83
+ def to_milliseconds(duration: Duration) -> int:
84
+ """Converts a Duration to milliseconds."""
85
+ return duration.ToMilliseconds()
86
+
87
+
88
+ def to_nanoseconds(duration: Duration) -> int:
89
+ """Converts a Duration to nanoseconds."""
90
+ return duration.ToNanoseconds()
91
+
92
+
93
+ def to_seconds(duration: Duration) -> int:
94
+ """Converts a Duration to seconds."""
95
+ return duration.ToSeconds()
96
+
97
+
98
+ def to_timedelta(duration: Duration) -> datetime.timedelta:
99
+ """Converts Duration to timedelta."""
100
+ return duration.ToTimedelta()
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/duration.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/duration.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/empty.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/empty.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/field_mask.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/field_mask.proto'
19
19
  )
@@ -72,7 +72,7 @@ class GeneratedProtocolMessageType(type):
72
72
  mydescriptor = Descriptor(.....)
73
73
  factory = symbol_database.Default()
74
74
  factory.pool.AddDescriptor(mydescriptor)
75
- MyProtoClass = factory.GetPrototype(mydescriptor)
75
+ MyProtoClass = message_factory.GetMessageClass(mydescriptor)
76
76
  myproto_instance = MyProtoClass()
77
77
  myproto.foo_field = 23
78
78
  ...
@@ -120,7 +120,7 @@ class GeneratedProtocolMessageType(type):
120
120
  # to achieve similar results.
121
121
  #
122
122
  # This most commonly happens in `text_format.py` when using descriptors from
123
- # a custom pool; it calls symbol_database.Global().getPrototype() on a
123
+ # a custom pool; it calls message_factory.GetMessageClass() on a
124
124
  # descriptor which already has an existing concrete class.
125
125
  new_class = getattr(descriptor, '_concrete_class', None)
126
126
  if new_class:
@@ -568,7 +568,7 @@ def _AddInitMethod(message_descriptor, cls):
568
568
  )
569
569
  )
570
570
 
571
- if new_val:
571
+ if new_val != None:
572
572
  try:
573
573
  field_copy.MergeFrom(new_val)
574
574
  except TypeError:
@@ -988,7 +988,10 @@ def _InternalUnpackAny(msg):
988
988
  if descriptor is None:
989
989
  return None
990
990
 
991
- message_class = factory.GetPrototype(descriptor)
991
+ # Unable to import message_factory at top because of circular import.
992
+ # pylint: disable=g-import-not-at-top
993
+ from google.protobuf import message_factory
994
+ message_class = message_factory.GetMessageClass(descriptor)
992
995
  message = message_class()
993
996
 
994
997
  message.ParseFromString(msg.value)
@@ -242,7 +242,7 @@ class Timestamp(object):
242
242
  Otherwise, returns a timezone-aware datetime in the input timezone.
243
243
  """
244
244
  # Using datetime.fromtimestamp for this would avoid constructing an extra
245
- # timedelta object and possibly an extra datetime. Unfortuantely, that has
245
+ # timedelta object and possibly an extra datetime. Unfortunately, that has
246
246
  # the disadvantage of not handling the full precision (on all platforms, see
247
247
  # https://github.com/python/cpython/issues/109849) or full range (on some
248
248
  # platforms, see https://github.com/python/cpython/issues/110042) of
@@ -34,7 +34,7 @@ class GeneratedProtocolMessageType(_message.MessageMeta):
34
34
  mydescriptor = Descriptor(.....)
35
35
  factory = symbol_database.Default()
36
36
  factory.pool.AddDescriptor(mydescriptor)
37
- MyProtoClass = factory.GetPrototype(mydescriptor)
37
+ MyProtoClass = message_factory.GetMessageClass(mydescriptor)
38
38
  myproto_instance = MyProtoClass()
39
39
  myproto.foo_field = 23
40
40
  ...
@@ -28,8 +28,8 @@ class Domain(Enum):
28
28
  # These OSS versions are not stripped to avoid merging conflicts.
29
29
  OSS_DOMAIN = Domain.PUBLIC
30
30
  OSS_MAJOR = 5
31
- OSS_MINOR = 28
32
- OSS_PATCH = 3
31
+ OSS_MINOR = 29
32
+ OSS_PATCH = 0
33
33
  OSS_SUFFIX = ''
34
34
 
35
35
  DOMAIN = OSS_DOMAIN
@@ -38,6 +38,9 @@ MINOR = OSS_MINOR
38
38
  PATCH = OSS_PATCH
39
39
  SUFFIX = OSS_SUFFIX
40
40
 
41
+ # Avoid flooding of warnings.
42
+ _MAX_WARNING_COUNT = 20
43
+ _warning_count = 0
41
44
 
42
45
  class VersionError(Exception):
43
46
  """Exception class for version violation."""
@@ -65,10 +68,12 @@ def ValidateProtobufRuntimeVersion(
65
68
  runtime.
66
69
  """
67
70
 
68
- disable_flag = os.getenv('TEMORARILY_DISABLE_PROTOBUF_VERSION_CHECK')
71
+ disable_flag = os.getenv('TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK')
69
72
  if disable_flag is not None and disable_flag.lower() == 'true':
70
73
  return
71
74
 
75
+ global _warning_count
76
+
72
77
  version = f'{MAJOR}.{MINOR}.{PATCH}{SUFFIX}'
73
78
  gen_version = f'{gen_major}.{gen_minor}.{gen_patch}{gen_suffix}'
74
79
 
@@ -89,12 +94,14 @@ def ValidateProtobufRuntimeVersion(
89
94
 
90
95
  if gen_major != MAJOR:
91
96
  if gen_major == MAJOR - 1:
92
- warnings.warn(
93
- 'Protobuf gencode version %s is exactly one major version older than'
94
- ' the runtime version %s at %s. Please update the gencode to avoid'
95
- ' compatibility violations in the next runtime release.'
96
- % (gen_version, version, location)
97
- )
97
+ if _warning_count < _MAX_WARNING_COUNT:
98
+ warnings.warn(
99
+ 'Protobuf gencode version %s is exactly one major version older'
100
+ ' than the runtime version %s at %s. Please update the gencode to'
101
+ ' avoid compatibility violations in the next runtime release.'
102
+ % (gen_version, version, location)
103
+ )
104
+ _warning_count += 1
98
105
  else:
99
106
  _ReportVersionError(
100
107
  'Detected mismatched Protobuf Gencode/Runtime major versions when'
@@ -70,12 +70,12 @@ class Service(object):
70
70
  Postconditions:
71
71
 
72
72
  * "done" will be called when the method is complete. This may be
73
- before CallMethod() returns or it may be at some point in the future.
73
+ before CallMethod() returns or it may be at some point in the future.
74
74
  * If the RPC failed, the response value passed to "done" will be None.
75
- Further details about the failure can be found by querying the
76
- RpcController.
75
+ Further details about the failure can be found by querying the
76
+ RpcController.
77
77
  """
78
- raise NotImplementedError
78
+ raise NotImplementedError
79
79
 
80
80
  def GetRequestClass(self, method_descriptor):
81
81
  """Returns the class of the request message for the specified method.
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/source_context.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/source_context.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/struct.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/struct.proto'
19
19
  )
@@ -1806,7 +1806,7 @@ def ParseFloat(text):
1806
1806
  try:
1807
1807
  return float(text.rstrip('f'))
1808
1808
  except ValueError:
1809
- raise ValueError('Couldn\'t parse float: %s' % text)
1809
+ raise ValueError("Couldn't parse float: %s" % text)
1810
1810
 
1811
1811
 
1812
1812
  def ParseBool(text):
@@ -0,0 +1,112 @@
1
+ # Protocol Buffers - Google's data interchange format
2
+ # Copyright 2008 Google Inc. All rights reserved.
3
+ #
4
+ # Use of this source code is governed by a BSD-style
5
+ # license that can be found in the LICENSE file or at
6
+ # https://developers.google.com/open-source/licenses/bsd
7
+
8
+ """Contains the Timestamp helper APIs."""
9
+
10
+ import datetime
11
+ from typing import Optional
12
+
13
+ from google.protobuf.timestamp_pb2 import Timestamp
14
+
15
+
16
+ def from_json_string(value: str) -> Timestamp:
17
+ """Parse a RFC 3339 date string format to Timestamp.
18
+
19
+ Args:
20
+ value: A date string. Any fractional digits (or none) and any offset are
21
+ accepted as long as they fit into nano-seconds precision. Example of
22
+ accepted format: '1972-01-01T10:00:20.021-05:00'
23
+
24
+ Raises:
25
+ ValueError: On parsing problems.
26
+ """
27
+ timestamp = Timestamp()
28
+ timestamp.FromJsonString(value)
29
+ return timestamp
30
+
31
+
32
+ def from_microseconds(micros: float) -> Timestamp:
33
+ """Converts microseconds since epoch to Timestamp."""
34
+ timestamp = Timestamp()
35
+ timestamp.FromMicroseconds(micros)
36
+ return timestamp
37
+
38
+
39
+ def from_milliseconds(millis: float) -> Timestamp:
40
+ """Converts milliseconds since epoch to Timestamp."""
41
+ timestamp = Timestamp()
42
+ timestamp.FromMilliseconds(millis)
43
+ return timestamp
44
+
45
+
46
+ def from_nanoseconds(nanos: float) -> Timestamp:
47
+ """Converts nanoseconds since epoch to Timestamp."""
48
+ timestamp = Timestamp()
49
+ timestamp.FromNanoseconds(nanos)
50
+ return timestamp
51
+
52
+
53
+ def from_seconds(seconds: float) -> Timestamp:
54
+ """Converts seconds since epoch to Timestamp."""
55
+ timestamp = Timestamp()
56
+ timestamp.FromSeconds(seconds)
57
+ return timestamp
58
+
59
+
60
+ def from_current_time() -> Timestamp:
61
+ """Converts the current UTC to Timestamp."""
62
+ timestamp = Timestamp()
63
+ timestamp.FromDatetime(datetime.datetime.now(tz=datetime.timezone.utc))
64
+ return timestamp
65
+
66
+
67
+ def to_json_string(ts: Timestamp) -> str:
68
+ """Converts Timestamp to RFC 3339 date string format.
69
+
70
+ Returns:
71
+ A string converted from timestamp. The string is always Z-normalized
72
+ and uses 3, 6 or 9 fractional digits as required to represent the
73
+ exact time. Example of the return format: '1972-01-01T10:00:20.021Z'
74
+ """
75
+ return ts.ToJsonString()
76
+
77
+
78
+ def to_microseconds(ts: Timestamp) -> int:
79
+ """Converts Timestamp to microseconds since epoch."""
80
+ return ts.ToMicroseconds()
81
+
82
+
83
+ def to_milliseconds(ts: Timestamp) -> int:
84
+ """Converts Timestamp to milliseconds since epoch."""
85
+ return ts.ToMilliseconds()
86
+
87
+
88
+ def to_nanoseconds(ts: Timestamp) -> int:
89
+ """Converts Timestamp to nanoseconds since epoch."""
90
+ return ts.ToNanoseconds()
91
+
92
+
93
+ def to_seconds(ts: Timestamp) -> int:
94
+ """Converts Timestamp to seconds since epoch."""
95
+ return ts.ToSeconds()
96
+
97
+
98
+ def to_datetime(
99
+ ts: Timestamp, tz: Optional[datetime.tzinfo] = None
100
+ ) -> datetime.datetime:
101
+ """Converts Timestamp to a datetime.
102
+
103
+ Args:
104
+ tz: A datetime.tzinfo subclass; defaults to None.
105
+
106
+ Returns:
107
+ If tzinfo is None, returns a timezone-naive UTC datetime (with no timezone
108
+ information, i.e. not aware that it's UTC).
109
+
110
+ Otherwise, returns a timezone-aware datetime in the input timezone.
111
+ """
112
+ return ts.ToDatetime(tzinfo=tz)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/timestamp.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/timestamp.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/type.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/type.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/wrappers.proto
5
- # Protobuf Python Version: 5.28.3
5
+ # Protobuf Python Version: 5.29.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  5,
15
- 28,
16
- 3,
15
+ 29,
16
+ 0,
17
17
  '',
18
18
  'google/protobuf/wrappers.proto'
19
19
  )
@@ -27,7 +27,7 @@ from .exceptions import (
27
27
  )
28
28
  from .jwks_client import PyJWKClient
29
29
 
30
- __version__ = "2.10.0"
30
+ __version__ = "2.10.1"
31
31
 
32
32
  __title__ = "PyJWT"
33
33
  __description__ = "JSON Web Token implementation in Python"
@@ -419,11 +419,11 @@ class PyJWT:
419
419
  if "iss" not in payload:
420
420
  raise MissingRequiredClaimError("iss")
421
421
 
422
- if isinstance(issuer, Sequence):
423
- if payload["iss"] not in issuer:
422
+ if isinstance(issuer, str):
423
+ if payload["iss"] != issuer:
424
424
  raise InvalidIssuerError("Invalid issuer")
425
425
  else:
426
- if payload["iss"] != issuer:
426
+ if payload["iss"] not in issuer:
427
427
  raise InvalidIssuerError("Invalid issuer")
428
428
 
429
429
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2docfx
3
- Version: 0.1.9.dev1927679
3
+ Version: 0.1.9.dev1929293
4
4
  Summary: A package built based on Sphinx which download source code package and generate yaml files supported by docfx.
5
5
  Author: Microsoft Corporation
6
6
  License: MIT License