Skip to content

Commit f8a3ceb

Browse files
committed
Fix the APIConfig Setter Method
Previously, calling "set_access_token()" resulted in a noop since the static method did not reference the APIConfig class.
1 parent cc7c151 commit f8a3ceb

File tree

1 file changed

+1
-1
lines changed
  • src/openapi_python_generator/language_converters/python/templates

1 file changed

+1
-1
lines changed

src/openapi_python_generator/language_converters/python/templates/apiconfig.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class APIConfig():
2525
{% if env_token_name is not none %}
2626
raise Exception("This client was generated with an environment variable for the access token. Please set the environment variable '{{ env_token_name }}' to the access token.")
2727
{% else %}
28-
_access_token = value
28+
APIConfig._access_token = value
2929
{% endif %}
3030

3131
class HTTPException(Exception):

0 commit comments

Comments
 (0)