Skip to content

Commit bcb9836

Browse files
authored
Don't mutate class attribute (#115)
- Comment out unused imports
1 parent f625172 commit bcb9836

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

encryption/codec.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import base64
21
import os
32
from typing import Iterable, List
43

hello/hello_activity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asyncio
2-
import logging
32
from dataclasses import dataclass
43
from datetime import timedelta
54

@@ -38,7 +37,8 @@ async def run(self, name: str) -> str:
3837

3938

4039
async def main():
41-
# Uncomment the line below to see logging
40+
# Uncomment the lines below to see logging output
41+
# import logging
4242
# logging.basicConfig(level=logging.INFO)
4343

4444
# Start client

hello/hello_mtls.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from typing import Optional
66

77
from temporalio import activity, workflow
8-
from temporalio.client import Client, TLSConfig
8+
from temporalio.client import Client
9+
from temporalio.service import TLSConfig
910
from temporalio.worker import Worker
1011

1112

hello/hello_patch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asyncio
2-
import logging
32
import sys
43
from dataclasses import dataclass
54
from datetime import timedelta
@@ -96,7 +95,8 @@ async def main():
9695

9796
version = sys.argv[1]
9897

99-
# Uncomment the line below to see logging
98+
# Uncomment the lines below to see logging output
99+
# import logging
100100
# logging.basicConfig(level=logging.INFO)
101101

102102
# Start client

hello/hello_search_attributes.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import asyncio
2-
from typing import List
32

43
from temporalio import workflow
5-
from temporalio.client import Client, WorkflowExecutionDescription
6-
from temporalio.common import SearchAttributeValues
7-
from temporalio.converter import default as default_converter
4+
from temporalio.client import Client
85
from temporalio.worker import Worker
96

107

hello/hello_update.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
@workflow.defn
99
class GreetingWorkflow:
10-
is_complete = False
10+
def __init__(self):
11+
self.is_complete = False
1112

1213
@workflow.run
1314
async def run(self) -> str:

0 commit comments

Comments
 (0)