| 
					
				 | 
			
			
				@@ -501,7 +501,7 @@ class Grid: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if highlight_mask is None: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            highlight_mask = np.zeros(shape=(self.width, self.height), dtype=np.bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            highlight_mask = np.zeros(shape=(self.width, self.height), dtype=bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # Compute the total grid size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width_px = self.width * tile_size 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -564,7 +564,7 @@ class Grid: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width, height, channels = array.shape 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         assert channels == 3 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        vis_mask = np.ones(shape=(width, height), dtype=np.bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        vis_mask = np.ones(shape=(width, height), dtype=bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         grid = Grid(width, height) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for i in range(width): 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -577,7 +577,7 @@ class Grid: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return grid, vis_mask 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     def process_vis(grid, agent_pos): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        mask = np.zeros(shape=(grid.width, grid.height), dtype=np.bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mask = np.zeros(shape=(grid.width, grid.height), dtype=bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         mask[agent_pos[0], agent_pos[1]] = True 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1181,7 +1181,7 @@ class MiniGridEnv(gym.Env): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if not self.see_through_walls: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             vis_mask = grid.process_vis(agent_pos=(self.agent_view_size // 2 , self.agent_view_size - 1)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         else: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            vis_mask = np.ones(shape=(grid.width, grid.height), dtype=np.bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            vis_mask = np.ones(shape=(grid.width, grid.height), dtype=bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # Make it so the agent sees what it's carrying 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # We do this by placing the carried object at the agent's position 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1260,7 +1260,7 @@ class MiniGridEnv(gym.Env): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         top_left = self.agent_pos + f_vec * (self.agent_view_size-1) - r_vec * (self.agent_view_size // 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # Mask of which cells to highlight 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        highlight_mask = np.zeros(shape=(self.width, self.height), dtype=np.bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        highlight_mask = np.zeros(shape=(self.width, self.height), dtype=bool) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         # For each cell in the visibility mask 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for vis_j in range(0, self.agent_view_size): 
			 |