Skip to content

Commit

Permalink
remove postprocess script
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed Oct 14, 2024
1 parent 267a4f9 commit c802311
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 279 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% import 'keywords.jinja2' as keywords %}
# coding=utf-8
{{ code_model.options['license_header'] }}

{{ keywords.path_type_checking_imports() }}
{% if clients %}
{% for client in clients %}
from .{{ client.filename }} import {{ client.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ except ImportError:
_patch_all = []
{% endif %}
from ._patch import patch_sdk as _patch_sdk{% endmacro %}
{% macro path_type_checking_imports() %}
# pylint: disable=wrong-import-position

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import
{% endmacro %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% import 'keywords.jinja2' as keywords %}
# coding=utf-8
{{ code_model.options['license_header'] }}
{{ keywords.path_type_checking_imports() }}
{% if schemas %}

{% for schema in schemas %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{# actual template starts here #}
# coding=utf-8
{{ code_model.options['license_header'] }}

{{ keywords.path_type_checking_imports() }}
{{ op_tools.serialize(operation_group_imports()) }}
{{ keywords.patch_imports() }}
__all__ = [
Expand Down
183 changes: 0 additions & 183 deletions packages/http-client-python/generator/pygen/postprocess/__init__.py

This file was deleted.

19 changes: 0 additions & 19 deletions packages/http-client-python/generator/pygen/postprocess/get_all.py

This file was deleted.

This file was deleted.

0 comments on commit c802311

Please sign in to comment.