Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(python): multiple aws classes with same name #245

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub class InflightApiEndpointHandler impl cloud.IApiEndpointHandler {
if target == "sim" {
this.inner = new simapi.InflightApiEndpointHandler(props);
} elif target == "tf-aws" {
this.inner = new tfawsapi.Inflight_tfaws(props);
this.inner = new tfawsapi.InflightApiEndpointHandler_aws(props);
} else {
throw "Unsupported target ${target}";
}
Expand Down
4 changes: 2 additions & 2 deletions python/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/python",
"description": "python library for Wing",
"version": "0.0.3",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand Down
2 changes: 1 addition & 1 deletion python/tfaws/api_onrequest_inflight.w
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bring util;
bring "../types.w" as types;
bring "./inflight.w" as inflyght;

pub class Inflight_tfaws extends inflyght.Inflight_tfaws impl types.IApiOnRequest {
pub class InflightApiEndpointHandler_aws extends inflyght.Inflight_tfaws impl types.IApiOnRequest {
new(props: types.InflightProps) {
super(props);
}
Expand Down
2 changes: 1 addition & 1 deletion python/util.extern.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface MetadataEntry {
export class Node {
/** Add an ordering dependency on another construct.
An `IDependable` */
readonly addDependency: (deps?: ((readonly (IDependable)[])) | undefined) => void;
readonly addDependency: (deps: (readonly (IDependable)[])) => void;
/** Adds a metadata entry to this construct.
Entries are arbitrary values and will also include a stack trace to allow tracing back to
the code location for when the entry was added. It can be used, for example, to include source
Expand Down
Loading